문제

We use blue navigation bar colour and white text colour:

status bar

However when I create UIImagePickerController it changes the colour for status bar:

saved photos

Are there any workarounds?

도움이 되었습니까?

해결책

Based on answer here UIImagePickerController breaks status bar appearance. I fixed it with

picker.delegate = self;

and

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top