0

As soon as I updated to iOS 8, i found that my already released app is not properly showing the orientations, my app only support landscape orientations, but when i checked it on iOS 8, the first navigation controller is in Portrait orientation.

It automatically goes fine after it goes to background, but on fresh launch it behaves in the same way.

All orientation methods are implemented properly and working fine on iOS 7 and later.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation   
- (BOOL)shouldAutorotate
- (NSUInteger)supportedInterfaceOrientations
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
Haroon
  • 697
  • 1
  • 9
  • 24
  • Can you give your view structure i have same problem, http://stackoverflow.com/questions/25769068/supporting-multiple-interface-but-have-single-interface-in-home-screen-not-worki – Jageen Sep 19 '14 at 05:18
  • Navigation Controller -> ViewController -> Views – Haroon Sep 19 '14 at 05:49

2 Answers2

3

Here it is Documentation of deprecated Method in iOS 8 about Orientation and other Methods

enter image description here

Nitin Gohel
  • 49,482
  • 17
  • 105
  • 144
0

Ok, It got Fixed

As my App was creating UIWindow object before I set the Status bar orientation and It was through the xib so I am creating the UIWindow using code now.

window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

As in iOS8 it initialize MainWindow frame according to the Device orientation. but it don't do that same with the iOS7 and earlier.

Haroon
  • 697
  • 1
  • 9
  • 24