I am creating an application that will be "Portrait" only for the main types (both normal and inverted). I set this parameter in Project Settings / Plist and everything works fine. However, I have a few modal representations that do things like image / video display, and I want them to be able to rotate to all orientations.
I tried adding a category for the UINavigationController, but no luck. I also added to the viewController, which calls the modal code below:
-(BOOL)shouldAutomaticallyForwardAppearanceMethods{ return NO; } -(BOOL)shouldAutomaticallyForwardRotationMethods{ return NO; }
I added the code below to the modal viewControllers, which I want to allow for all orientations:
- (BOOL)shouldAutorotate { return YES; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAll; }
What am I missing? Any suggestions?
ios rotation modal-dialog uiinterfaceorientation
JimmyJammed Feb 20 2018-12-18T00: 00Z
source share