I use the Info.plist way because i couldn't figure out where to put the Code: [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; . If you know how, could you include it in the tutorial?
In your application delegate class, where everything is called when the application loads: Code: - (void)applicationDidFinishLaunching:(UIApplication *)theApplication; that would most likely be a good time to =]
No, cocotuch, you are wrong. If you disable it in the plist, you can easily add/change the status bar in code. It is only a temporary thing. My point was that you should learn how to do this in code so that you can do things in code when you need to.
I have Vanilla surf and when you use the full screen feature, the status bar is still there.. is there any way i can get rid of the status bar when i am in full screen mode?
Code: - (void)applicationDidFinishLaunching:(UIApplication *)theApplication { application.statusBarHidden = YES; // rest of code }
Actually it would be: Code: - (void)applicationDidFinishLaunching:(UIApplication *)theApplication { theApplication.statusBarHidden = YES; // rest of code }
It CAN be done that way, but why not just set this property on the UIApplication passed in applicationDidFinishLauncing: Unless setting this automatically makes it animated(I am not sure if it does or not) @property(nonatomic,getter=isStatusBarHidden) BOOL statusBarHidden;