I\'ve been using
[UIApplication sharedApplication].statusBarHidden = YES;
to hide the status bar when users enter specific UIViewControlle
What worked for me was setting "Status bar is initially hidden" to YES in my app's Info.plist.
EDITED:::
that is new updated answer :
Do in plist file
"View controller-based status bar appearance" to NO and write code
[UIApplication sharedApplication].statusBarHidden = YES;
in appdelegate