UIImagePickerController的状态栏颜色

时间:2014-04-28 13:20:16

标签: ios uiimagepickercontroller statusbar

我们使用蓝色导航栏颜色和白色文字颜色:

status bar

但是,当我创建UIImagePickerController时,它会更改状态栏的颜色:

saved photos

有没有解决方法?

1 个答案:

答案 0 :(得分:7)

根据这里的回答UIImagePickerController breaks status bar appearance。我用

修复了它
picker.delegate = self;

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}