tags:

views:

27

answers:

1

Hello,

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

A: 

Found the solution in the following thread:

http://stackoverflow.com/questions/2513353/how-to-create-an-action-for-a-uitabbaritem

Stephen