in iOS7 how do you stop the First viewcontroller autorotating?

Posted by uaka on Programmers See other posts from Programmers or by uaka
Published on 2014-06-13T08:07:56Z Indexed on 2014/06/13 9:40 UTC
Read the original article Hit count: 237

Filed under:

I have an app that just needs one screen to autorotate, the first and last screens should be portrait. I can get the last screen to stop rotating using:

    -(NSUInteger)supportedInterfaceOrientations
{

  return UIInterfaceOrientationMaskPortrait;

}

But this does not work on the first screen, I am using a storyboard with a UINavigationController (I'm thinking that may have something to do with it?)

Any help would be gratefully received. Thanks

© Programmers or respective owner

Related posts about iphone