I had a few issues trying to resolve the deprecated warning within Xcode regarding the ‘setStatusBarHidden’ line of code.
Stackoverflow had a bunch of answers that were out of date and did not work with Xcode 4.2 and iOS5.
This line of code enables your status bar to be hidden when the app is launched. I used it for a few of my apps, the main one being Brain Tester.
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
to
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:
Don’t forget, you can actually BUY most of my apps for only $10. You will get the whole app, including the source code, images, icons etc.
Click here to view my portfolio.