【问题标题】:Removing the default tabbar color iOS删除默认的标签栏颜色 iOS
【发布时间】:2013-12-02 16:25:50
【问题描述】:

我想将背景图片放置到默认标签栏这里我添加了背景标签栏背景图片的代码,但它同时出现了我的背景图片和默认标签栏也请建议删除默认标签栏黑色图像。请参考下面图片便于理解

提前感谢

【问题讨论】:

    标签: ios xcode


    【解决方案1】:

    试试这个代码:

    // this will generate a gray tab bar
    tabBarController.tabBar.barTintColor = [UIColor grayColor];
    tabBarController.tabBar.translucent = false;
    // this will give selected icons and text your apps tint color
    tabBarController.tabBar.tintColor = [UIColor redColor];  // appTintColor is a UIColor *
    

    【讨论】:

      猜你喜欢
      • 2012-01-15
      • 2014-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-18
      • 2011-10-07
      • 2013-06-11
      相关资源
      最近更新 更多