Search code examples
ios8statusbarxcode6

Issue of status bar which is getting hidden in landscape mode in ios 8 and works fine in ios 7 tried after release of ios 8 in xCode 6


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 ?


Solution

  • 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;
    }