首页 > 系统 > iOS > 正文

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

2020-07-26 02:50:37
字体:
来源:转载
供稿:网友

设置状态栏的背景颜色

- (void)setStatusBarBackgroundColor:(UIColor *)color{    UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];  if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) {    statusBar.backgroundColor = color;  }}

以上这篇iOS 设置状态栏的背景颜色方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持武林网。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表