ios7 status bar changing back to black on modal views? [duplicate]
Asked Answered
G

1

4

I have my app setup and everything works great until I call my image picker and my mail controller. On each of those views the UIStatusBar changes to black even though I have

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

and View controller-based status bar appearance set to YES.

Any idea how to control the light color of these modal views? See the images - the first one is the entire app, working great. The second is the image picker after the image library is shown and the third is the mail composer.

Any help would be highly appreciated!

enter image description here

enter image description here

enter image description here

Giavani answered 3/1, 2014 at 3:13 Comment(3)
Exact duplication found.Fenske
I've tried this method and it does not work for me.Giavani
Hey, that works for me 1) Set View controller-based status bar appearance to NO 2) Set Status bar style to UIStatusBarStyleLightContent (just copy that value) 3) In appDelegate use ` [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];`Levania
C
1

I think you need to put this on the view controller presenting the modal controller

- (UIStatusBarStyle) preferredStatusBarStyle { 
    return UIStatusBarStyleLightContent; 
}
Cloche answered 3/1, 2014 at 3:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.