Reputation: 109
I changed the status bar text colour to white,when I open camera roll in my app, it again sets status bar text colour to black, and when I dismiss camera roll status bar in my app has black text.
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
Upvotes: 2
Views: 931
Reputation: 109
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}
solved my problemmm
Upvotes: 3
Reputation: 2600
You can also do this with out writing code
On you project plist file:
Set the
Status bar style:
UIStatusBarStyleLightContent
View controller-based status bar appearance: NO
Status bar is initially hidden: NO
Upvotes: 0