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

Discussion in 'iOS Questions' started by Sandman, Nov 9, 2018.

  1. Sandman

    Sandman Well-Known Member Licensed 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?
  2. Sandman

    Sandman Well-Known Member Licensed 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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice