【问题标题】:for question about autorotation关于自转的问题
【发布时间】:2009-10-31 12:06:55
【问题描述】:

我的超级视图是 UItabelview,我的子视图是 UITabelview 和 UIDatePicker。 因为我的子视图无法调用

  • (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 持续时间:(NSTimeInterval)duration

为什么? bcoz 这个方法在视图旋转时调用,当时我想为该视图设置 autoresizingmask 方法,以便当我的子视图从纵向模式旋转到横向模式时,它的视图会自动调整大小?

【问题讨论】:

    标签: iphone


    【解决方案1】:

    确保您的子视图响应

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    }

    【讨论】:

      猜你喜欢
      • 2011-02-05
      • 1970-01-01
      • 1970-01-01
      • 2011-11-04
      • 2020-06-03
      • 2015-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多