0

I have a custom UINavigationBar which I am using to remove the gradient of the navbar in iOS 6. Though the color of the status bar is equal to the color of the screen opposed to the color of the bar

Is there a way to make them the same color or at least make the status bar black. My problem is in ios7.

Also if I change the style of the UINavigationBar translucent to NO like this:

self.navigationController.navigationBar.translucent = NO;

Then the status bar goes completely black with no writing on it.

4

1 回答 1

0

在您的项目信息列表中,更改 UIViewControllerBasedStatusBarAppearance 值,如果没有,则添加此键。

于 2014-06-14T07:05:31.693 回答