星空网 > 软件开发 > 操作系统

修改状态栏的 前景颜色 和 背景颜色

1.在info.plist 里面加 key: View controller-based status bar appearance      value:NO

 

// 设置状态栏 前景颜色 ( 电池、时间)

- (void)setupStatusLight

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}

// 设置状态栏 背景颜色
- (void)setupStatusBackgroud
{
    UIView *statusView = [[UIView alloc] initWithFrame:CGRectMake(0, -20, Screen_Width, 20)];
    statusView.backgroundColor = [UIColor whiteColor];

    [self.navigationController.navigationBar addSubview:statusView];

}

 




原标题:修改状态栏的 前景颜色 和 背景颜色

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

进口跨境电商模式:https://www.goluckyvip.com/tag/34807.html
进口跨境电商排名:https://www.goluckyvip.com/tag/34808.html
进口跨境电商培训:https://www.goluckyvip.com/tag/34809.html
雅玛森:https://www.goluckyvip.com/tag/3481.html
进口跨境电商全解析:https://www.goluckyvip.com/tag/34813.html
进口跨境电商系统:https://www.goluckyvip.com/tag/34814.html
instagram竞品“TikTok Notes”在加拿大和澳大利亚上线:https://www.goluckyvip.com/news/220211.html
青岛黄岛景点门票一览 - 青岛黄岛旅游景点介绍免费:https://www.vstour.cn/a/410226.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流