How do I create a pointer from witihin one controller to another controller that is already on the stack and created by a StoryBoard.
For example, I use the method instantiateViewControllerWithIdentifier to load a view controller onto the stack/screen.
I know there is another controller behind this, still loaded called InitialViewController (class). How do I get a reference/pointer to the controller that I know is there.
If I try and log out presentedViewController or presentingViewController from self/navigationController they return null. NSLog(@"presented: %@",self.navigationController.presentedViewController);
EDIT - more information on view controllers in app
- Initial View Controller loaded (sub class of ECSlidingViewController)
Depending if user logged in
Welcome View Controller loaded (this is a navigation stack including Welcome/Login/Signup) Home View Controller loaded (navigation stack with home VC as the root)
Basically the initial view controller has a property of topViewController which is set to Home (nav stack) or Welcome (nav stack).
The initial view controller is always on the current display (just never seen).
How do I reference this, or create a pointer to it. For example, if I was within the imp file for the Login VC how do I control/link to the view on the initial view controller without recreating it with alloc/init?