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!
source share