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; }
try this one it's help for me-: