in iOS7 how do you stop the First viewcontroller autorotating?
- by uaka
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