【问题标题】:How to customize tab bar button and tab bar selected color?如何自定义标签栏按钮和标签栏选择颜色?
【发布时间】:2011-03-26 06:45:22
【问题描述】:

我想自定义标签栏..不是灰色..如何自定义标签栏?如何更改标签栏选定的背景颜色(默认:蓝色)?

【问题讨论】:

    标签: iphone uitabbarcontroller


    【解决方案1】:

    您要么使用私有 API,这将导致您的应用被 App Store 拒绝 或者您编写自己的标签栏控件。

    【讨论】:

      【解决方案2】:

      在你的应用 deletegate.m 文件中试试这个

      [[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-09-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-01-17
        • 2012-11-23
        • 1970-01-01
        相关资源
        最近更新 更多