简体   繁体   中英

Status bar on iPad with iOS 7 (iPad/iPad mini)

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?

Add this to your Plist file:

UIViewControllerBasedStatusBarAppearance and set it to NO

and

UIStatusBarHidden and set that one to YES

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

- (BOOL)prefersStatusBarHidden
{
  return YES;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM