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



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





你可能感兴趣的:(状态栏,黑底白字)