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;
原文地址:https://www.cnblogs.com/HOYF/p/5616302.html