iOS 修改状态栏颜色(懒人用法)
2016-11-26 本文已影响0人
字母大师
//就是创建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];