I have a UIViewController
with the following code:
- (BOOL) shouldAutorotate {
return NO;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationPortrait;
}
I am not using a UINavigationController
. When this UIViewController
is being displayed, the device will still rotate to landscape. I am targeting iOS 9, what's the issue here?