View in Tab can't reference parent controller (iPhone)
View in Tab can't reference parent controller (iPhone)
- Subject: View in Tab can't reference parent controller (iPhone)
- From: Trygve Inda <email@hidden>
- Date: Sun, 19 Jul 2009 17:38:49 +0000
- Thread-topic: View in Tab can't reference parent controller (iPhone)
I have an AppController in my main nib. Also in this nib is a
TabBarController and several custom subclasses of UIViewController.
The TabBarController manages the custom subclasses of UIViewController.
However, these subcalsses need to be able to get back to the AppController .
So for each subclass I have created an IBOutlet for the AppController and
linked them up in my main nib.
When a button action happens for example in one of the views, my IBOutlet
from the custom view class back to the AppController is nil.
Why... And how can I get a value here so that the view can call a method in
the AppController?
Even if I have the AppController pass self to a view controller and the
viewController stores it, later on, the value has reset to nil.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden