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

jjgraz

macrumors regular
Original poster
Feb 13, 2009
103
0
How do I simulate a TabBar button pressed from within a DetailViewControllers Method.....? The delegate for TabBarController is appDelegate.


aViewController.m

Code:
- (IBAction)buttonPressed:(id)sender{
*********want to use.......rootController.selectedIndex = 4;********
	}

It doesn't recognize rootController.

Thank you.
 
works with:

Code:
self. tabBarController.selectedIndex = 0;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.