iOS Question [SOLVED] Status bar automatically hidden when iPhone in landscape?

Sandman

Expert
Licensed User
Longtime User
I've started a new app (so very little code so far), and noticed something unexpected:

  • When I have the iPhone in portrait mode, the status bar is visible - just as expected.

  • When I turn the iPhone to landscape mode, the status bar disappears - not what I expected.

I can toggle the status bar on and off by switching between portrait and landscape. And I've managed to make it reappear in landscape mode using this code, so it's not really a huge problem for me.

Is this how it's supposed to work in iOS, or did I do something to make ut automatically hide itself?
 

Sandman

Expert
Licensed User
Longtime User
After more research, it seems this is a mixed bag. Many apps (most) lose the status bar when in landscape mode. But some (Gmail, for instance) keep showing it.

So I will chalk this up as a "not my problem, Apple designed it that way" and just let it disappear, to behave like most iOS apps.
 
Upvote 0
Top