It may seem trivial, but usual:
1 |
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; |
is not working, nor:
1 |
[UIApplication sharedApplication].statusBarHidden = YES; |
Now everything is simplified and minimalistic, so all you have to do is new key in your plist file named View controller-based status bar appearance and set its value to NO: