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

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

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

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

if ([[[UIDevice currentDevice] systemVersion] floatValue] > = 7) {
  self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
}
 
 
 
祝您愉快开心 ^_^
原文地址:https://www.cnblogs.com/tianglin/p/3426484.html