ios 设置状态栏的颜色
2016-09-23 本文已影响103人
GF极客天涯
- (void)viewDidLoad {
[super viewDidLoad];
//创建一个高20的假状态栏
UIView *statusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 20)];
//设置成
statusBarView.backgroundColor = BLColor;
[self.navigationController.view addSubview:statusBarView];
}