改变状态栏字体颜色
2016-01-19 18:20
190 查看
1在Info.plist中设置UIViewControllerBasedStatusBarAppearance 为NO
2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法中增加:
[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
如果需要在全部View中都变色,可以写在父类的相关方法中,或者写到AppDelegate中。
2 在需要改变状态栏颜色的ViewController中在ViewDidLoad方法中增加:
[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
如果需要在全部View中都变色,可以写在父类的相关方法中,或者写到AppDelegate中。
相关文章推荐
- 函数
- 14.Using the CUSTOMERS table, you need to generate a report that shows 50% of each credit amount
- C#中常用的几种读取XML文件的方法
- 常用iptables配置实例
- androidStudio 生成jar 文件
- mysql 简单命令
- 抽象类和接口的区别
- VC中的adb通信
- nginx+uwsgi+django 配置2
- Application类
- python string与list互转
- 编译安装mysql5.7.9
- tomcat处理请求导致页面出现ERR_CONNECTION_RESET错误解决方案
- python简单爬虫--转源码
- 1.1 Getting Started-Core Concepts
- PHP变量作用域
- java操作Excel的工具—POI学习
- Android上传文件
- Java内存泄漏发生的情况
- 1.2 Getting Started--Naming Conventions(命名约定)