I'm using a UINavigationController
for rootViewController
, I make the navigationBar to transparent
[self.view setBackgroundColor:[UIColor greenColor]];
self.navigationController.navigationBar.shadowImage = [UIImage new];
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
The problem is, when I navigate to 2nd viewController
[self.navigationController.navigationBar setBackgroundColor:[UIColor greenColor]];
Here I set the navigationBar
color back to green, but the status bar doesn't appear in green background.
Is that possible to change the status bar background to green?