I need to fire an event when a tab button has been pressed from the tab bar in Xcode. I am clueless to do this? can someone help me?
Asked
Active
Viewed 187 times
-2
-
have you checked apple docs, or tried anything yet? – RobP Apr 12 '14 at 14:22
-
I tried this one..its not calling - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(DetailViewController *)viewController{ NSLog(@"T APPEA"); } – user3517855 Apr 12 '14 at 14:26
-
put some code.. edit your answer.. – Ashish Kakkad Apr 12 '14 at 14:26
1 Answers
0
You should use UITabBarDelegate to your UITabBar and define tabBar:didSelectItem:
as described here : How do you connect a tab bar item to an action?