Discussion Forums  >  Status Bar, Navigation Bar

Replies: 6    Views: 132

Djdios
Lost but trying
Profile
Posts: 175
Reg: Mar 20, 2013
Valby, Denmark
3,550
07/07/13 07:04 AM (7 years ago)

Status bar on splash screen

Hi
I can't seem to figure out how to hide the status bar when the splash screen is on. Images res is what it should be. I tried to tick the "hide during app launch" but no luck.

Any suggestions?
 
Jake Chasan
Veteran developer
Profile
Posts: 1684
Reg: May 13, 2011
location unknow...
29,640
like
07/07/13 07:57 AM (7 years ago)
Have you tried adding:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[[UIApplication sharedApplication] setStatusBarHidden:YES];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Just below this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Jake
 
Djdios
Lost but trying
Profile
Posts: 175
Reg: Mar 20, 2013
Valby, Denmark
3,550
like
07/07/13 08:18 AM (7 years ago)
In which file do I put this code? And it looks like it removes the status bar completely just by looking at the code?
 
Djdios
Lost but trying
Profile
Posts: 175
Reg: Mar 20, 2013
Valby, Denmark
3,550
like
07/07/13 08:56 AM (7 years ago)
In which file do I put this code? And it looks like it removes the status bar completely just by looking at the code?
 
Jake Chasan
Veteran developer
Profile
Posts: 1684
Reg: May 13, 2011
location unknow...
29,640
like
07/08/13 09:22 AM (7 years ago)
You would put this code in the Splash Screen's .m (implementation) file.

This code (which is standard Objective-C iOS Code) should remove the status bar for 1 view. Each plugin is a UI View, so when the view is "popped" (or disappears) the status bar should show up again.

Jake
 
Djdios
Lost but trying
Profile
Posts: 175
Reg: Mar 20, 2013
Valby, Denmark
3,550
like
07/10/13 10:37 AM (7 years ago)
Hi again
You say I have to insert the code below [BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]] but no such line exists in the BT_screen_splash.m file??
 
Djdios
Lost but trying
Profile
Posts: 175
Reg: Mar 20, 2013
Valby, Denmark
3,550
like
07/10/13 11:35 AM (7 years ago)
I've tried adding this du the m file with no luck

//setup navigation bar and background
[BT_viewUtilities configureBackgroundAndNavBar:self theScreenData:[self screenData]];
[[UIApplication sharedApplication] setStatusBarHidden:YES];
 

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.