iOS DeveloperiOS 开发

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

}
上一篇 下一篇

猜你喜欢

热点阅读