Resolving the ‘setStatusBarHidden:animated:’ is deprecated warning

11 01 2012

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.

 

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: