Tuesday, June 28, 2011

How to hide the status bar by code

This might be a simple one, and mostly been done by changing the plist file. Saw this example using code to hide the status bar on the top of the screen, so quickly note it down in case I need to use/find it again in the future...


- (void)applicationDidFinishLaunching:(UIApplication *)application {
    
    [application setStatusBarHidden:YES];
    
    [window addSubview:viewController.view];
    [window makeKeyAndVisible];
}

0 comments:

Post a Comment