设置状态栏的背景颜色
? 1 2 3 4 5 6 7 8 9 10 11 12 13 - (void)setStatusBarBackgroundColor:(UIColor *)color { UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"]; if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) { statusBar.backgroundColor = color; } }以上这篇iOS 设置状态栏的背景颜色方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持服务器之家。