设置状态栏颜色 字体

 

 

 

- (UIStatusBarStyle)preferredStatusBarStyle{

    

    return UIStatusBarStyleLightContent;

}

 

//  设置状态栏颜色

 // 设置导航栏颜色

    [self.navigationBar setBarTintColor:[UIColor colorWithRed:-0.0 green:147/255.0 blue:137/255.0 alpha:1.0]];

    

    // 设置导航栏字体颜色

    [self.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], NSForegroundColorAttributeName, nil]];

 

posted @ 2016-06-01 11:14  Feierer  阅读(244)  评论(0)    收藏  举报