dragos
dragos

Reputation: 3

UITabBar get selected item

How can I catch the event when an item is selected from a UITabBar on iPhone/iPad app?

Upvotes: 0

Views: 1780

Answers (1)

willcodejavaforfood
willcodejavaforfood

Reputation: 44073

The UITabBar has a delegate property which you can use. Create a class that implements the UITabBarDelegate and the method:

– tabBar:didSelectItem: 

will do the trick

Upvotes: 1

Related Questions