0

I've created a TabBarController, but don't want the usual gray/blue icons with it, so I created another class inheriting from UITabBarItem. So the question is : how can I use these custom icons/items with my tab bar (add them and link them to some view controllers) ? Programmatically or with IB of course.

Thank you very much.

Rob
  • 15,732
  • 22
  • 69
  • 107

1 Answers1

1

For each view controller that you put into your tab bar controller, assign your custom tab bar item to the view controller's tabBarItem property

tux91
  • 1,674
  • 10
  • 16
  • Could you give me an example ? Let's imagine I have a class containing : `UITabBarController * tabBar; CustomItem * item1, * item2; UIViewController * controller1, * controller2;` What must I do here ? – Rob May 17 '12 at 09:51