lonelysoul

Happy share, happy life.

导航

如何做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);
}
 
 
 
祝您愉快开心 ^_^

posted on 2013-11-16 10:53  lonelysoul  阅读(195)  评论(0编辑  收藏  举报