iOS 7 status bar overlaps camera controls on UIImagePickerController

前端 未结 9 2359
星月不相逢
星月不相逢 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 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}

提交回复
热议问题