xcode升级到Xcode5 在ios7运行 程序的状态栏StatusBar消失了,现在有解决办法了
1.在appdeletage里面 添加如下代码:
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
}
2.在info.plist文件里面 属性:View controller-based status bar appearance 值设为NO
接着运行程序,可以看到StatusBar了
ios7 StatusBar消失解决
精选 转载上一篇:xcode5使用老控件
下一篇:ios7 留白

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Taro创建新页面
taro create --name=pageName ...
Taro taro 其他