Deepak Kumar
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO] is depricated
1 Answer(s)      6 years and a month 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










Related Tutorials/Questions & Answers: