How to make UIImagePickerController StatusBar lightContent style?

前端 未结 7 1620
悲哀的现实
悲哀的现实 2020-12-29 12:53

\"enter

When I present the ImagePickerController the statusBar text color is still bla

7条回答
  •  生来不讨喜
    2020-12-29 13:44

    This is the quickest solution I could think of. Create the following category:

    @implementation UIImagePickerController (LightStatusBar)
    
    - (UIStatusBarStyle)preferredStatusBarStyle
    {
        return UIStatusBarStyleLightContent;
    }
    
    @end
    

提交回复
热议问题