2

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?

Tristan Warner-Smith
  • 9,631
  • 6
  • 46
  • 75
Iqbal Khan
  • 4,587
  • 8
  • 44
  • 83

1 Answers1

4
NSArray * items = tabBar.items ;
((UITabBarItem*)[ items objectAtIndex:0 ]).title = 
    ((UITabBarItem*)[ items objectAtIndex:3 ]).title
nielsbot
  • 15,922
  • 4
  • 48
  • 73