1

In my RootViewController I have a UITabBar with three UITabBarItems. I want to load a separate View Controller when each UITabBarItem is clicked. But I'm not sure how to detect that tap on the bar item.

Previously I just had UIButtons and when clicked executed the code below:

[self presentModalViewController:infoViewController animated:YES];

Regards, Stephen

Sulthan
  • 128,090
  • 22
  • 218
  • 270
Stephen
  • 4,715
  • 8
  • 53
  • 78
  • Possible duplicate of [How to create an action for a UITabBarItem?](http://stackoverflow.com/questions/2513353/how-to-create-an-action-for-a-uitabbaritem) – Sulthan Apr 12 '16 at 15:41

1 Answers1

3

Found the solution in the following thread:

How to create an action for a UITabBarItem?

Community
  • 1
  • 1
Stephen
  • 4,715
  • 8
  • 53
  • 78