I have 2 root view controllers ViewController1 and TabBarController1(there are reasons for making 2 root view-controllers). ViewController1 only supports Portrait mode and TabBarController1 supports all orientations. ViewController1 appears first after launch. I am locking the orientation of ViewController1 using the following method.
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
The app launch and orientation worked fine with iOS7. When building the app through Xcode 6 in iPad(iOS8) following change is observed: - When app is launched in landscape mode, ViewController1 with orientation locked into portrait mode appears with half black screen and when TabBarController1 appears which supports all orientations, doesn't resize with proper dimensions on changing orientations. I have also tried overriding the above method in TabBarController1 to support all orientation but nothing works fine. This problem is not observed when launching the app on iPad in portrait mode. There is no problem when launching the app on iPhone as iPhone launches only in Portrait mode. What is the issue when working with iOS8 ?