Jak*_*ahl 3 iphone rotation auto-rotation ios6
我将整个界面放在一个故事板中.如何让大多数ViewControllers仅支持纵向方向,而只有一对支持所有方向.我无法理解苹果新的自动旋转系统.另外,我怎样才能使这个向后兼容iOS 5?
Raf*_*bre 10
在Navigation Controller子类中,将决策转发到堆栈中的顶视图控制器:
-(NSUInteger) supportedInterfaceOrientations {
return [self.topViewController supportedInterfaceOrientations];
}
Run Code Online (Sandbox Code Playgroud)
为此创建单独的故事板文件是最糟糕的路径,维护它们与应用更新保持同步将是一个维护噩梦.