plist里UIViewControllerBasedStatusBarAppearance设置为NO;
创新互联主要从事网站设计制作、网站设计、网页设计、企业做网站、公司建网站等业务。立足成都服务肃南裕固族自治,10余年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:18980820575
KEY : View controller-based status bar appearance Type : Boolean Value : NO
在appdelegate.m中添加
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
[application setStatusBarStyle:UIStatusBarStyleLightContent];
self.window.clipsToBounds =YES;
self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
self.window.bounds = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height);
}