Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 290
Zalak Patel Avatar asked Sep 16 '14 09:09

Zalak Patel


1 Answers

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;
}
like image 171
nschum Avatar answered Oct 16 '22 06:10

nschum