iOS 7 status bar overlaps camera controls on UIImagePickerController

前端 未结 9 2355
星月不相逢
星月不相逢 2020-12-15 01:18

I\'ve tried setting the Info.plist \'View controller-based status bar appearance\' to NO, I\'ve tried calling

[[UIApplication sharedApplication] setStatusBar         


        
相关标签:
9条回答
  • 2020-12-15 01:58

    The PsychoDad method works for me. I put the following

    [[UIApplication sharedApplication] setStatusBarHidden:YES];
    

    into the method viewWillDisappear of subclass of UIImagePickerController.

    But the Alexandru Dranca method is better because in that way the status bar don't appear at all!

    However I think this is a BUG of IOS 7...

    0 讨论(0)
  • 2020-12-15 02:00

    "View controller-based status bar appearance" set to NO, works for me.

    0 讨论(0)
  • 2020-12-15 02:00

    I've been on this bug for repairing ToonPAINT for iOS7 and the thing that finally worked other than setting the two things in the Info.plist file (Status bar is initially hidden = NO; View controller-based status bar appearance = NO)

    was to change the style of the status bar (even though I didn't want it shown at all); It was not enough to just hide the status bar; sounds like an iOS7 bug.

    In the app delegate add:

    -(void)navigationController:(UINavigationController *)navigationController
     willShowViewController:(UIViewController *)viewController
     animated:(BOOL)animated
      {
      [[UIApplication sharedApplication] setStatusBarHidden:YES];
      [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
      }
    

    {NB .. UIStatusBarStyleBlackTranslucent is deprecated, probably use UIStatusBarStyleLightContent if trying this}

    0 讨论(0)
提交回复
热议问题