1. 首页
  2. 数据库
  3. 其它
  4. iOS 设置状态栏的背景颜色方法

iOS 设置状态栏的背景颜色方法

上传者: 2021-02-01 12:13:22上传 PDF文件 31.73KB 热度 30次
设置状态栏的背景颜色 - (void)setStatusBarBackgroundColor:(UIColor *)color { UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@statusBarWindow] valueForKey:@statusBar]; if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) { statusBar.backgroundColor = color; }
用户评论