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;
时间: 2024-10-11 02:06:12