Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Popping in a UINavigationController inside a UISplitViewController causes strange transition

I am using a UINavigationController inside the Master View of a UISplitViewController. Inside of my UINavigationController I have, as usual, a UITableViewController. Selecting a cell in this table view pushes a new UINavigationItem onto the stack. This transition occurs as I expect. However, once I've pushed, when I push the Back button, the transition back to the top UINavigationItem doesn't slide from left to right as usual. Instead, the screen goes black, the Master View holding the UINavigationController/UITableViewController slides down in the center of the screen from the top, and then the UINavigationController appears back on the left side where I expect it. I've found similar questions, but all of the accepted answers revolve around not handling rotation correctly. I've double-checked that all of my view controllers return YES for all orientations.

like image 434
GarlicFries Avatar asked Nov 14 '22 07:11

GarlicFries


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 125
MuTaTeD Avatar answered Dec 30 '22 08:12

MuTaTeD