Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
03/24/14 04:21 AM (10 years ago)

Hide status bar on iOS7

I have been struggling with this one for a couple of days now and wonder if someone could help. Using xCode 5.1 simulator iOS7.1 I have tried this: in the info.plist added a few rows, cleaned and re-run. UIStatusBarHidden = YES UIViewControllerBasedStatusBarAppearance = NO Didnt change a thing Watched this video <a href="http://www.youtube.com/watch?v=vZW0vblbixA" target="_blank" rel="nofollow">http://www.youtube.com/watch?v=vZW0vblbixA</a> suggesting other names on the rows: View controller-based status bar = NO Status bar is initially hidden = Yes Still no luck Could it be a pr screen setting that overrides this? I really don't want the status bar to be visible on any screen in the app.
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
03/24/14 07:33 AM (10 years ago)
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/24/14 07:35 AM (10 years ago)
That the one I was watching. With no success, read above...
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
03/24/14 08:43 AM (10 years ago)
what is a pr screen? did you test this on a device or viewing it in the simulator, this work for me.
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/24/14 08:52 AM (10 years ago)
Testing both on a real iPhone 4s as well as a simulator. Same result. I was just thinking that the reason I cant get this to work was perhaps that the global setting telling the app to hide the status bar was somehow overridden by settings on the individual screens. But I have never found an option for this on screen level, so it is probably not the case. While the video you referred to refers to adding keys: View controller-based status bar Status bar is initially hidden Another post uses different key names: UIStatusBarHidden UIViewControllerBasedStatusBarAppearance (http://stackoverflow.com/questions/12661031/how-to-hide-a-status-bar-in-ios) I am confused :)
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
03/24/14 08:57 AM (10 years ago)
https://www.youtube.com/watch?v=lP-3G8iFAuI is a more advanced tutorial that goes into the shared screens.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
03/24/14 10:00 AM (10 years ago)
Have you tried the Hide Status Bar setting in the app's Theme menu? http://imgur.com/B6Qg1Q6
 
Tubaad
Aspiring developer
Profile
Posts: 35
Reg: May 29, 2012
RANHEIM
2,000
like
03/24/14 10:33 AM (10 years ago)
Thanks Stobe, that was embarrassingly easy! EdRays, thanks to you as well for the last video link. Very informative videos from that kid...
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
03/24/14 10:35 AM (10 years ago)
yup learned ios from his videos.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
03/24/14 10:48 AM (10 years ago)
My pleasure, Tubaad. Sometimes its the simplest things that we forget about. I've been there many times!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.