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了
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了
本文介绍了如何解决Xcode5升级到iOS7后应用程序状态栏消失的问题。通过在appdelegate中添加特定代码和修改info.plist文件属性,可以成功使状态栏重新显示。
&spm=1001.2101.3001.5002&articleId=11690633&d=1&t=3&u=e67f6506393f44c6847e363b5e6f9a55)
2815

被折叠的 条评论
为什么被折叠?



