Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jnic

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
Make your app delegate a UITabBarControllerDelegate, then you can use

Code:
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController

to catch when a user selects a view controller from the tab bar.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
You need a separate view controller for each tab. They can be instances of the same class but you need a separate instance for each tab.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.