IOS 状态栏 保持黑底白字 方法

时间:2014-09-24 16:16:29   收藏:0   阅读:322



plist里UIViewControllerBasedStatusBarAppearance设置为NO;

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);  
    }





原文:http://qccccc.blog.51cto.com/6004423/1557633

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!