如何作iOS7的简单适配(还原iOS6的状态栏和导航栏)

第一步:在plist里增长2个内容:windows

View controller-based status bar appearance : NO
Status bar style : Opaque black style

第二步:在appdelegate里让windows下移20像素app

if ([[[UIDevice currentDevice] systemVersion] floatValue] > = 7) {
  self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
}
 
 
 
祝您愉快开心 ^_^
相关文章
相关标签/搜索