Reputation: 119
Today I made my first version of my app to run on the iPhone. When I did this I see that it paints over the area where the status bar is at the top of the screen, but that the status bar is also painted so that there is a mix of both.
I did try to set the hide status bar property of the build to true, but with the same result.
What I'd really like is that my app should retain the status bar and paint up to it but not where the status bar is.
How can i do this in Codenameone?
Upvotes: 4
Views: 158
Reputation: 52770
iOS 7 and newer expects your app to draw underneath the status bar, its a design choice by Apple and as a developer you are supposed to leave space for the status bar.
The default native theme on iOS has a StatusBar
UIID style that pads the top but if you chose to remove the includeNative
theme constant or remove that padding this won't work as expected.
Upvotes: 4