As @rocky said you need to add Potrait mode to your application in order to use UIImagePickerController like this
or add this to your delegate-only class.
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ return UIInterfaceOrientationMaskAll; }
and Mr.Daniel Answer I found a nice solution for your application "Landscape Only", since you only need to support landscape for your application, you just need to add a category for UINavigationController , like this
@implementation UINavigationController (LandscapeOnly) - (NSUInteger) supportedInterfaceOrientations{ return UIInterfaceOrientationMaskLandscape; } @end
and add this to your viewControllers, it works for me.
Bala Dec 07 2018-12-12T00: 00Z
source share