Reputation: 4617
I want to change the title of UITabBarItem 1 to that of UITabBarItem 4.
Both are in the same UITabBarController.
How do I go about changing these titles?
Upvotes: 2
Views: 1052
Reputation: 16031
NSArray * items = tabBar.items ;
((UITabBarItem*)[ items objectAtIndex:0 ]).title =
((UITabBarItem*)[ items objectAtIndex:3 ]).title
Upvotes: 4