美文网首页iOS DeveloperiOS 开发
ios 设置状态栏的颜色

ios 设置状态栏的颜色

作者: GF极客天涯 | 来源:发表于2016-09-23 10:50 被阅读103次
 - (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];
    

}

相关文章