Skip to content

How to control interface orientation? #129

@mradlmaier

Description

@mradlmaier

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions