我使用的是UINavigationController
UIStatusBar在iOS7改变颜色
为rootViewController
,我做的导航栏,以透明
[self.view setBackgroundColor:[UIColor greenColor]];
self.navigationController.navigationBar.shadowImage = [UIImage new];
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
的问题是,当我浏览到第2的viewController
[self.navigationController.navigationBar setBackgroundColor:[UIColor greenColor]];
这里我设置navigationBar
颜色回绿色,但状态栏没有出现在绿色背景中。
是否有可能将状态栏背景改为绿色?