Prudhvi Raj Pampana
Prudhvi Raj Pampana

Reputation: 109

to change Status Bar text colour to white permanently throughout my app in iOS 7

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

Answers (2)

Prudhvi Raj Pampana
Prudhvi Raj Pampana

Reputation: 109

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}

solved my problemmm

Upvotes: 3

Bishal Ghimire
Bishal Ghimire

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

enter image description here

Upvotes: 0

Related Questions