I want to hide staus bar in single view controller but my code is not working. I\'m using the below code
-(BOOL)prefersStatusBarHidden { return YES; }
To hide status bar on a single VC:
1) Add this value to plist:
"View controller-based status bar appearance" and set it to "YES"
2) Add following to viewWillAppear:
[self prefersStatusBarHidden];
3) Add new method: