2

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?

Eugen Martynov
  • 19,888
  • 10
  • 61
  • 114
  • Thanks a lot. I ignored that answer because it was about hiding status bar. But my brain was thinking about another issue. I've just used proposed injection but with `[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]`. It works for me. Please close if it is a duplication – Eugen Martynov Apr 28 '14 at 14:41

1 Answers1

7

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];
}
Community
  • 1
  • 1
Eugen Martynov
  • 19,888
  • 10
  • 61
  • 114