Status bar disappears when rotating
I am new to iOS, I have done all the Apples tutorials, but something is bothering me and I cannot find the correct keywords to solve this problem, otherwise I would not ask such a simple question. Everyone else seems to want to hide the status bar, but I want mine to stay constant across all turns.
Default orientation:
Any other orientation:
The status bar disappears! Can anyone point me in the right direction as to why? Thanks you
+3
Ben
source
to share
1 answer
I went to info.plist under file support, added a new item: "View Controller Based Status Bar" and gave it YES
Then I went to the dispatcher .m file and looked there
- (BOOL)prefersStatusBarHidden
{
return NO;
}
+7
Ben
source
to share