Status Bar always overlaps the screen

Monkey Targets Forums/iOS/Status Bar always overlaps the screen

Xaron(Posted 2014) [#1]
So it looks like that the status bar is now always in front of the main window.

I found this as solution:
http://stackoverflow.com/questions/18886195/ios-7-status-bar-overlapping-ui


rIKmAN(Posted 2014) [#2]
I'm finding this problem too.

This fixed it for me...(part in bold)


You should add this value to plist: "View controller-based status bar appearance" and set it to "NO".

This will enable you to set the status bar to hidden mode. This sets it to a global unlike other provided answers.

UPDATE: If you want that the status bar would be hidden on splash screen don't forget to mark "Hide during application launch" on target status bar options. Also, you can add "Status bar is initially hidden" to "YES" on the plist if you don't want to do it with code inside the app.




Xaron(Posted 2014) [#3]
Thanks! Should be added per default I guess!


Lugato(Posted 2014) [#4]
Yep Xaron,

The problem give me another thing, in the last 100 pixel of the screen, the touch don't work, with the patch all work nicely again :)

I was modified my IOS template located in "monkeyDir/targets/ios/template/MonkeyGame-Info.plist", adding:
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

After block:
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>

bye!