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]];

  • 相关阅读:
    第五周总结
    第四周总结
    关于“模仿"和”创新“
    第三周总结
    第九周总结
    第八周总结
    第六周总结
    中国历史上成功的两人合作
    第五周总结
    第四周总结
  • 原文地址:https://www.cnblogs.com/tian-sun/p/4270878.html
Copyright © 2011-2022 走看看