[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO] is depricated

Ads

 
 

Share on Google+Share on Google+

Deepak Kumar
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO] is depricated
1 Answer(s)      6 years and 4 months ago
Posted in : MobileApplications

Hi,

I am using following code in my application to set the status bar hidden.

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]

Compiler is giving warning and saying this method is deprecated.

Please suggest the correct method.

Thanks

Ads
View Answers

February 17, 2011 at 3:37 PM


Hi,

Use the following method:

[[UIApplication sharedApplication] setStatusBarHidden:YES];

Thanks


Ads









Related Tutorials/Questions & Answers: