【问题标题】:UITableView changes sizes when rotated from portrait, to landscape, back to portraitUITableView 在从纵向旋转到横向再回到纵向时会更改大小
【发布时间】:2013-02-25 01:52:17
【问题描述】:

我有一个自定义大小的 UITableView,我在纵向模式下将其设置为一定的宽度和高度。但是,当我旋转到横向,然后回到纵向时,表格的大小莫名其妙地增加了(即使在: willAnimateRotationToInterfaceOrientation(UIInterfaceOrientation)toInterfaceOrientation 持续时间:(NSTimeInterval)持续时间

函数,我将其设置为与第一次加载表格时相同的宽度和高度(纵向模式)

谢谢, sdk

【问题讨论】:

    标签: ios uitableview rotation


    【解决方案1】:

    我的建议是更改自动调整大小的蒙版

    [tableView setAutoresizingMask:UIViewAutoresizingNone]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-05
      • 2011-07-23
      • 2018-07-03
      • 1970-01-01
      • 1970-01-01
      • 2015-10-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多