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