taiyang2014

导航栏上字体与图标的颜色设置

   //导航栏上背景色
 self.navigationController.navigationBar.barTintColor = RGB(117, 178, 240);
//导航栏上自己添加的控件的颜色
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
//导航栏上字体的颜色
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};
//导航栏上自带图标的颜色

 

        //导航栏上自带图标颜色为白色

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

        //设置导航栏上控件字体的颜色

    [[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];

posted on 2015-02-03 19:34  taiyang2014  阅读(370)  评论(0编辑  收藏  举报

导航