我有一个关于iOS 6的问题Orientation.Here is my file
在此示例代码中,我希望使MasterViewController仅具有纵向方向,而使DetailViewController具有纵向方向和横向方向。
我知道iOS 6方向是由最顶层的控制器控制的。
所以我定制了一个UINavigationController(CustomNavigationController),在这个类中设置了supportedInterfaceOrientations和shouldAutorotate。
-(NSUInteger)supportedInterfaceOrientation