The target screenshot want
First,I have read those link
All of the links use those API of UIApplication
- setStatusBarStyle:animated:
- setStatusBarHidden:withAnimation:
But,those API are deprecated in iOS 9.
So,how to get lightContent statusBar in iOS 9?
I figure it out,just post my answer. Accept any better answer
View controller-based status bar appearance
to YES,or just delete this key in info.plistMake a subclass of UIImagePickerController
@interface BaseImagePickerController : UIImagePickerController
@end
@implementation BaseImagePickerController
-(UIStatusBarStyle)preferredStatusBarStyle{
return UIStatusBarStyleLightContent;
}
@end
Use this subclass
self.imagePikerViewController = [[BaseImagePickerController alloc] init];