my application, developed in iOS7, has a forced orientation base on device: iphone -> portrait Ipad -> landscape
With iOS8, if my apps on ipad starts in portrait mode, it will show the app in landscape but the result is:

How to fix iOS 8 orientation?
I'm not sure if I can answer my own questions, but I have resolved the issue using
[self.window setFrame:[[UIScreen mainScreen] bounds]];
at the end of (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method.
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
if ([window.rootViewController isKindOfClass:[UINavigationController class] ]) {
if ([[window.rootViewController presentedViewController]
isKindOfClass:[SignatureViewController class]]) {
return UIInterfaceOrientationLandscapeRight;
}
return UIInterfaceOrientationMaskPortrait;
}
return UIInterfaceOrientationMaskPortrait;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With