zoukankan      html  css  js  c++  java
  • tabbar颜色与文字大小,状态栏样式

    tabbar文字颜色与大小

    [self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithName:@"Helvetica" size:12.0]} forState:UIControlStateNormal];

    [self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithName:@"Helvetica" size:12.0]} forState:UIControlStateNormal];

    设置导航栏文字颜色与大小

    self.navigationBar.barTintColor = MAINColor;

     [self.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName : [UIFont fontWithName:@"Helvetica" size:12.0]}];

      //.设置状态栏样式

      [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;

    设置tabbar不透明 

    self.tabBar.translucent = NO;

    群号:186052819
  • 相关阅读:
    websocket 学习笔记
    oxy 学习笔记
    postcss
    一致性hash和chord
    leveldb 学习笔记
    logrus 学习笔记
    viper 学习笔记
    redigo 学习笔记
    gin 学习笔记
    修改TOMCAT的JVM虚拟机内存大小几种方式
  • 原文地址:https://www.cnblogs.com/zuidap/p/5764044.html
Copyright © 2011-2022 走看看