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

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
Hi ALl,
I created a tab bar template app from xcode. Now after going a few screens and all, I need to access FirstViewController which is not instantiated anywhere in the code. How can I access the instance of firstViewController from other classes ?

--CH
 
Hi ALl,
I created a tab bar template app from xcode. Now after going a few screens and all, I need to access FirstViewController which is not instantiated anywhere in the code. How can I access the instance of firstViewController from other classes ?

--CH

[[tabBarControllerInstance viewControllers] objectAtIndex:0];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.