UIImagePickerControllerSourceTypePhotoLibrary status bar solid / white

I am creating an application that at some point turns a photo library. The problem is that the status bar is black transparent in the photo library, while I want the default application to be one (solid white). Is there any way to change it.?

I would add that I tried: iOS SDK - how to return the status bar when using the UIImagePickerController method? :

-(void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; [[UIApplication sharedApplication] setStatusBarHidden:NO]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES]; } 

only works for the camera, not for the photo library. Of course, I also tried to use the default style.

UPDATE: I found out a way to change the navigation bar:

 - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated { navigationController.navigationBar.barStyle = UIBarStyleDefault; } 

This works, however the status bar style is still dark, while I need the default application, it is also white.

Thank you very much in advance!

+4
source share
1 answer

Fixed a problem with another. To keep the status bar always the same, I just added the viewDidAppear method, which is written in my main post in my root controller, so all the time it included turning the photo library on

0
source

All Articles