仅当设备处于横向模式时才显示UIViewController的最佳方法是什么? 当设备处于横向模式时,模态视图控制器应以模态方式呈现,并且在返回纵向时应该自行解除。
由于- (BOOL)shouldAutorotateToInterfaceOrientation :(UIInterfaceOrientation)toInterfaceOrientation
只被调用一次(而不是每个UIViewController
),导航控制器应该如何设置?
答案 0 :(得分:0)
您正在寻找的方法是
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)o duration:(NSTimeInterval)t;