设置状态栏的背景颜色
2016-05-23 00:00
253 查看
//设置状态栏颜色
UIView *statusBarView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 20)];
statusBarView.backgroundColor = [UIColor redColor];
[[[UIApplication sharedApplication].windows lastObject] addSubview:statusBarView];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:NO];
UIView *statusBarView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 20)];
statusBarView.backgroundColor = [UIColor redColor];
[[[UIApplication sharedApplication].windows lastObject] addSubview:statusBarView];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:NO];
相关文章推荐
- 不允许textField输入空格
- 行业分析网站集合
- 反向输出链表
- Rebuild Instance 操作详解 - 每天5分钟玩转 OpenStack(37)
- JMeter使用技巧(包括多台分布式测试)
- JMeter(安装配置)学习(一)工具简单介绍
- 分布式开放消息系统(RocketMQ)的原理与实践
- springmvc Could not write content: No serializer
- 利用Docker云计算把家里的电脑变成网站服务器
- java JDBC批量提交数据性能差异
- Java中Integer与int的区别
- 使用python的logging模块在stdout输出
- 一个mysql题
- mysql 的交集和差集
- CentOS 6.5 开启Xmanager远程桌面登录
- Java 爬虫
- Github上搭建个简单的个人博客
- HTML5之触摸事件(touchstart、touchmove和touchend)
- Rust的多继承和mixin机制
- error while loading shared libraries: xxx.so.x"错误