【问题标题】:How can I change a UITabBarItem title to the title from another UITabBarItem?如何将 UITabBarItem 标题更改为另一个 UITabBarItem 的标题?
【发布时间】:2011-05-05 07:12:36
【问题描述】:

我想将 UITabBarItem 1 的标题更改为 UITabBarItem 4 的标题。

两者都在同一个 UITabBarController 中。

如何更改这些标题?

【问题讨论】:

    标签: iphone objective-c uitabbarcontroller uitabbaritem


    【解决方案1】:
    NSArray * items = tabBar.items ;
    ((UITabBarItem*)[ items objectAtIndex:0 ]).title = 
        ((UITabBarItem*)[ items objectAtIndex:3 ]).title
    

    【讨论】:

      猜你喜欢
      • 2012-04-28
      • 1970-01-01
      • 2012-05-13
      • 2011-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多