10

I've got an issue with the status bar which is hidden when the simulator is rotated in landscape mode in iOS 8, while it works fine in iOS 7 simulators.

What should I do to resolve this issue ?

Steve
  • 9,270
  • 5
  • 47
  • 61
Zalak Patel
  • 1,937
  • 3
  • 26
  • 44
  • The accepted answer of this question fixed this issue: http://stackoverflow.com/questions/24329503/on-ios8-displaying-my-app-in-landscape-mode-will-hide-the-status-bar-but-on-ios – Bill Chan Nov 03 '14 at 21:06

3 Answers3

6

This is the new default in iOS 8. But you can restore the old behavior by overriding the following in your UIViewController:

- (BOOL)prefersStatusBarHidden {
    return NO;
}
nschum
  • 15,322
  • 5
  • 58
  • 56
5

The below simple solution is working great for me in iOS 8 without any issues.

- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {

     [coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context)
      {
         [[UIApplication sharedApplication] setStatusBarHidden:NO];

      } completion:^(id<UIViewControllerTransitionCoordinatorContext> context)
      {

      }];

     [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator]; 
}
Ganesh G
  • 1,991
  • 1
  • 24
  • 37
2

It's not an issue but a feature of IOS 8. The status bar is hidden in landscape mode in IOS 8

Patrick
  • 39
  • 4