2
votes

I have an application where I present an UIImagePickerController and I need to hide the status bar. The method I use to hide it works on iOS devices with 6.X OS and on iPhone/iPod Touch with 7.0, but the status bar is still visible on iPad/iPad mini devices with 7.0 OS.

Can someone tell me the reason why is not working on iOS 7.0 iPad devices?

2
what method are you using?Ilario
Ilario please see my comments bellow.Mihai Popa
Is your app iPhone only or universal? If it's iphone only the status bar might not disappear due to compatibility mode, in which case the only solution is to shift the elements on screen to make them visible.schmittsfn

2 Answers

3
votes

Add this to your Plist file:

UIViewControllerBasedStatusBarAppearance and set it to NO

and

UIStatusBarHidden and set that one to YES

1
votes

add this method to your viewcontroller Note:Use this when you want dynamically to hide status bar

- (BOOL)prefersStatusBarHidden
{
  return YES;
}