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了
注意:抄过来还未曾实验
http://www.cocoachina.com/bbs/read.php?tid=152991