in my experience in the last application in which I tried to do the same, I found answers to the stack overflow so as not to force the orientation in the application based on navigation.
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) return NO; else return YES; }
this function will allow you to use the view controller in the desired orientation, in this case I set it for the landscape and forbade rotation in portrait modes.
You will encounter the problem of loading a mode B controller first in orientation to A view controller you. Therefore, I completely changed the orientation of the application to the landscape. Hope this helps.
darkmystel
source share