//就是创建view盖在原来的状态栏上,颜色根据自己需要
UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WPSCREEN_WIDTH, 20)];
view.backgroundColor = MainBackGroudColor;
[self.view addSubview:view];
//就是创建view盖在原来的状态栏上,颜色根据自己需要
UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WPSCREEN_WIDTH, 20)];
view.backgroundColor = MainBackGroudColor;
[self.view addSubview:view];
本文标题:iOS 修改状态栏颜色(懒人用法)
本文链接:https://www.haomeiwen.com/subject/lixgpttx.html
网友评论