zoukankan      html  css  js  c++  java
  • 改变tabBarItem颜色

    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                           [UIColor blackColor], NSForegroundColorAttributeName,
                                                           nil] forState:UIControlStateNormal];
    UIColor *titleHighlightedColor = [UIColor colorWithR:52 g:168 b:132 a:1];
    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: titleHighlightedColor, NSForegroundColorAttributeName, nil] forState:UIControlStateSelected];

     上边是字体,下边是图片

    [_secondVC.tabBarItem setImage:[[UIImage imageNamed:@"dianpu"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    [_secondVC.tabBarItem setSelectedImage:[[UIImage imageNamed:@"dianpu02"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
  • 相关阅读:
    gdb --configuration
    firecracker 编译
    gvisor 编译
    gvisor
    rust Deref
    rust explicit
    rust move
    rust drop
    出租人对经营租赁的会计处理
    关于以公允价值计量的投资性房地产的处置
  • 原文地址:https://www.cnblogs.com/wlsxmhz/p/5462764.html
Copyright © 2011-2022 走看看