ios 白色状态栏

1.info plist 添加:

 

2.AppDelegate添加代码

UIView * statusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, -20, self.window.bounds.size.width, 20)];
    statusBarView.backgroundColor = TCOLOR(6,6,6,1);
    
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;

 

posted @ 2016-06-25 14:27  顺手给我new一个对象  阅读(139)  评论(0编辑  收藏  举报