0

In my application in ios8 status bar is hiding.But in iOS7 displaying the status bar. I have added the "Status bar is initially hidden = YES View controller-based status bar appearance = NO " and

[[UIApplication sharedApplication] setStatusBarHidden:YES
                                        withAnimation:UIStatusBarAnimationFade];

But getting the status bar.

Pavani
  • 61
  • 5

2 Answers2

0

Try it [[UIApplication sharedApplication] setStatusBarHidden:YES];

I think it okey with iOS 7.

Cuong Nguyen
  • 980
  • 2
  • 9
  • 29
0
  • (BOOL)prefersStatusBarHidden { return YES; }

I have implemented this method in each controller.Now status bar is not displaying in ios7.

Thanks for help.

Pavani
  • 61
  • 5