2

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

两者都在同一个 UITabBarController 中。

我该如何更改这些标题?

4

1 回答 1

4
NSArray * items = tabBar.items ;
((UITabBarItem*)[ items objectAtIndex:0 ]).title = 
    ((UITabBarItem*)[ items objectAtIndex:3 ]).title
于 2011-05-05T07:15:43.123 回答