我有一个自定义大小的 UITableView,我在纵向模式下将其设置为特定的宽度和高度。然而,当我旋转到横向,然后回到纵向时,表格的大小莫名其妙地增加了(即使在: willAnimateRotationToInterfaceOrientation(UIInterfaceOrientation)toInterfaceOrientation 持续时间:(NSTimeInterval)持续时间
函数,我把它设置成和我第一次加载表格时一样的宽度和高度(纵向模式)
谢谢, 开发工具包
最佳答案
我的建议是更改自动调整大小蒙版
[tableView setAutoresizingMask:UIViewAutoresizingNone]
关于ios - UITableView 在从纵向旋转到横向,再回到纵向时会更改大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15058951/