How can I change a UITabBarItem title to the title from another UITabBarItem?
I want to change the title of UITabBarItem 1 to that of UITabBarItem 4.
Both are in the same UITabBarController.
How do I g开发者_Python百科o about changing these titles?
NSArray * items = tabBar.items ;
((UITabBarItem*)[ items objectAtIndex:0 ]).title =
((UITabBarItem*)[ items objectAtIndex:3 ]).title
精彩评论