I have tried
[[UIApplication sharedApplication] setStatusBarHidden:YES];
This does nothing.
And I have looked in my Info.pli
Info.pli
You can hide the status bar without writing a single line of code, it just requires two entries into the info.plist the first is
"View controller-based status bar appearance" set to NO
the second is
"Status bar is initially hidden" set to YES