Search code examples
iosstatusbarxcode9

App Xcode 8 to Xcode 9 - Prevent Auto Hide Status Bar


When I open and close the control center, the status bar disappears automatically.

I do not want this behavior and it happens since I migrated the project from xcode 8 to 9. Occurs in iOS11 and iOS10.

enter image description here


Solution

  • I found the solution: In the info.plist i have to change

    View controller-based status bar appearance = No
    

    To

    View controller-based status bar appearance = Yes