Odd SplitView/NavigationController behavior in iOS6

女生的网名这么多〃 提交于 2019-12-10 20:55:07

问题


This is a long shot but I figured I'd see if anybody else has seen/fixed this issue.

I have an pre-IOS 6 app that uses a UISplitViewController with NavigationControllers in both the master and detail pane.

In iOS 5 and earlier, if I push a UIViewController onto the master navigation controller, it slides in; popping that view controller then slides it back out.

In iOS 6, in landscape orientation only, if I push a UIViewController onto the master navigation controller it slides in; however, popping that view controller then appears to consider the viewcontroller modal because it centers the view controller in the screen and then drops it to the bottom like a "dismissModalController" command would do. If it is in portrait mode, it slides in/out as expected.

I'm not sure what to do about this - Newer apps with similar layouts don't have this problem. I suspect it has something to do with the initial window/navigator setup which (in this app) was configured the old way with MainWindow.xib and MainWindow-iPad.xib. I'd rather not try to rip all that out and reconfigure using the "new" way (which does it all in the appdelegate)


回答1:


implementing the following in my view controllers solved it for me

-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

Hope it works for you as well



来源:https://stackoverflow.com/questions/14205511/odd-splitview-navigationcontroller-behavior-in-ios6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!