我们使用蓝色导航栏颜色和白色文字颜色:
但是,当我创建UIImagePickerController
时,它会更改状态栏的颜色:
有没有解决方法?
答案 0 :(得分:7)
根据这里的回答UIImagePickerController breaks status bar appearance。我用
修复了它picker.delegate = self;
和
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}