Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / iOS notification / status bar being covered up - app showing underneath status bar text

Author
Message
Naphier
11
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 18th Nov 2013 05:22
Hi. I'm wondering if there is a way to prevent this behavior in iOS? The notification bar is transparent and overlaying on the game screen. Looks really odd.



I'm using Xcode 5.0.1
In the target's General tab under Deployment Info is the only place I can see to change anything, but currently it is set to:
Main Interface: MainWindow
Device Orientation portrait / upside down portrait
Status Bar style Default
Hide during application launch is checked

Thanks!!

Naphier
11
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 18th Nov 2013 16:17
Unfortunately this looks like an iOS 7 issue I might just have to live with. I have looked at a bunch of different articles on this and they are all well beyond my current understanding of Xcode.
If anyone figures out either how to hide the notification bar in iOS7 or adjust the app's view controller to give the notification bar some room I'd be very happy. Not sure why Apple did this. Who would want the notification/status bar drawn over the app?

Naphier
11
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 18th Nov 2013 18:00
Eureka!
Easy way to fix this (this was way too hard to find)
Open the <yourprojectname>-info.plist file in Xcode
Right click on some white space and select Add Row
In the key drop down select "View controller-based status"...
Set the value to NO if it doesn't default to this.
Clean project, build, run, and viola no notification/status bar!!

This solution was so easy, all the other methods were very involved.
Glad I found it and hope it helps someone else!

Ancient Lady
Valued Member
18
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 18th Nov 2013 18:30
Awesome! Great information to know.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master

Login to post a reply

Server time is: 2022-09-25 21:59:21
Your offset time is: 2022-09-25 21:59:21