Patch: Hide the statusbar since the first second

Monkey Targets Forums/iOS/Patch: Hide the statusbar since the first second

michaelcontento(Posted 2012) [#1]
I'll keep it short ...

Problem: The statusbar is hidden in "application.didFinishLaunchingWithOptions" and thus the bar is visible for the first seconds.
Patch: Gist

Let me know if there is something wrong or broken. I'm happy for any feedback :)

All the best,
Michael


Tri|Ga|De(Posted 2012) [#2]
How do I use it?
Sorry it its a dumb question!


Soap(Posted 2012) [#3]
You edit the plist file in \MonkeyPro\targets\ios.


michaelcontento(Posted 2012) [#4]
Or simply with this one-liner:
patch -p0 <<(curl -s https://raw.github.com/gist/3318396/00308960130f4363dcfa7f22f26d56cc63edd3ee/statusbar.patch)



Tri|Ga|De(Posted 2012) [#5]
I tried this but the statusbar is still visible!
Should I restart my computer?


michaelcontento(Posted 2012) [#6]
No, but this does not work for already built projects (because the important file will only be created once). So a) you remove the whole XX.build/ios folder or b) you just enter the two lines manually :)

1) Close XCode if running
2) Add
<key>UIStatusBarHidden</key>
<true/>
to
XX.build/ios/MonkeyGame-Info.plist

3) Reopen XCode and you're done :)