PDA

View Full Version : uitabbar template app help




chhoda
Sep 21, 2009, 02:52 PM
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



ghayenga
Sep 23, 2009, 11:20 AM
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];