-
Notifications
You must be signed in to change notification settings - Fork 117
Description
I want that my app runs in portrait mode except for a view scenes/View controllers
Normally one would enable all orientations in the Deployment infos, and then, in each view controller:
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown;
} // in the view controllers which support both
and
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
} // in the view controllers, which should only support portrait mode
However, this method (in iOS7) only gets called on the root view controller (according to apple docs).
This is the SASlideMenuRootViewController, and I tested it, it seems, this is the only controller in which above method is called.
Now, how do I know when this method is called, which view controller is about to be presented?