设置状态栏的颜色

 - 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]; }

相关文章