zoukankan      html  css  js  c++  java
  • 导航栏上字体与图标的颜色设置

       //导航栏上背景色
     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]];

  • 相关阅读:
    form标签
    roadmap
    自我介绍
    3 week work—Grid Layout
    3 week work—Position
    2nd week
    objects
    个人简介
    7th week :DOM BOM
    颜色表示法
  • 原文地址:https://www.cnblogs.com/tian-sun/p/4270878.html
Copyright © 2011-2022 走看看