Question

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?

Était-ce utile?

La solution

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];
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top