第一步:在plist里增加2个内容:
View controller-based status bar appearance : NO
Status bar style : Opaque black style
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);
}
self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
}
祝您愉快开心 ^_^