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 ?
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 ?
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;
}
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];
}
It's not an issue but a feature of IOS 8. The status bar is hidden in landscape mode in IOS 8