Search code examples
iosappceleratorappcelerator-titaniumappcelerator-alloy

appcelerator ios app displays black bar above and below app content


This is driving me completely crazy. I can not get my app to hide the status bar on my iphone.

In my tiapp.xml I have

<fullscreen>true</fullscreen>
and
<key>UIStatusBarHidden</key><true/>

in my index.xml I have

<Alloy>
<Window class="container" fullscreen="true">

I still get a blank statusbar at the bottom of the screen on my iphone.

What do I miss ? This is frustrating.


Solution

  • What you saw in http://s11.postimg.org/3rk17bib7/bottompart.png is not very clear because the app had a black background, but this is what was happening:

    You were missing splash screens for the iPhone (6) you ran the app on, which triggers iOS to display the app in letterbox mode. So the black space under the label is the letterbox. Same will have been visible at the top of the screen.