升级xcode5 ios7 后状态栏被导航栏遮挡的解决方案
2014-04-18 11:04
381 查看
第一步Info.plist中加入View controller-based status bar appearance 值设置为NO
第二步在AppDelegate 中加入以下代码
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
UIApplication *myApp = [UIApplication sharedApplication];
[myApp setStatusBarStyle: UIStatusBarStyleLightContent];
}
第二步在AppDelegate 中加入以下代码
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
UIApplication *myApp = [UIApplication sharedApplication];
[myApp setStatusBarStyle: UIStatusBarStyleLightContent];
}
相关文章推荐
- show engine innodb status显示信息不全如何解决
- Ajax xmlHttpRequest的status的值的含义
- AJAX(XMLHttpRequest.status)状态码
- 各类Http请求状态(status)及其含义详细解析
- iOS 7:自定义导航转场动画以及更多
- ios7 中关于导航切换影响UIScrollView的问题
- apache+tomcat+mod_jk整合
- Linux系统利用Crontab命令实现定时重启
- xcode5使用老控件
- ios7 留白
- nginx添加对web status及status的每一项含义
- undo表空间浅谈
- mysql binlog数据如何查看
- bbed
- http status code
- 使用ajaxuploadfile遇到的问题处理
- AJAX方法调用
- mysql show status
- 我也来说说扁平化设计
- xcode5 ios7beta编译多余log清除