i want to be able to make an IBaction execute when i click on a tabbar item.. I am using the default tab bar template that Xcode 4.2 has, and i understand how to link an IB Action to a Button… But, i am running into difficulty when trying to link an IBaction to a tabBaritem (at the bottom of the screen). So when someone clicks one of my tabs, an action is executed?
How can this action be performed?
Thanks!
It’s not really a good thing to try and use a tab bar as a toolbar, there is a UI element for that. If you really want to run an action when clicking on a tab bar button, you need to add it to the controller that is activated by the button.