1、新建一个类继承自: UIImagePickerController
2、在新建的类中重写以下方法
#pragma mark status bar style
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
#pragma mark navigationBar tintColor & title textColor
- (instancetype)init
{
self = [super init];
if (self) {
self.navigationBar.tintColor = [UIColor whiteColor];
[self.navigationBar setTitleTextAttributes:@{
UITextAttributeTextColor : [UIColor whiteColor], UITextAttributeFont:[UIFont systemFontOfSize:17]
}];
}
return self;
}
然后初始化的时候 直接使用你定义的ViewController初始化就好了
不用再使用UIImagePickerController