iPhone – Remove status bar programmatically not from all screens

We can remove status bar by programmatically from specific screens. Just override prefersStatusBarHidden function and return yes where you want to hide the status bar.

How to hide the status bar programmatically in iPhone

- (BOOL)prefersStatusBarHidden
{
    return YES;
}

 

Leave a comment

Your email address will not be published. Required fields are marked *