Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Odd SplitView/NavigationController behavior in iOS6

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)

like image 472
Mike M Avatar asked Dec 05 '25 02:12

Mike M


1 Answers

implementing the following in my view controllers solved it for me

-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

Hope it works for you as well

like image 168
MuTaTeD Avatar answered Dec 07 '25 17:12

MuTaTeD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!