Simple tip – it’s very easy to hide the iPhone / iPad status bar at the top of the screen. If you’ve started with one of Apple’s application templates, you’ll find this code in your [AppName]AppDelegate.m file:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after app launch
[window addSubview:viewController.view];
[window makeKeyAndVisible];
return YES;
}
Simply add this line to this message:
[application setStatusBarHidden:YES withAnimation:YES];
… and you’re done.
(Note that the previous version of this message used animated:YES, but that’s been deprecated so will be removed in a future OS release).