Linking xib's
Linking xib's
- Subject: Linking xib's
- From: Charlie Dickman <email@hidden>
- Date: Wed, 16 Dec 2009 16:20:41 -0500
I'm developing an iPhone app that has 2 xib's; 1 for the controller and 1 for the main window. This structure is based on that recommended in the "Beginning iPhone Development" book.
When the didReceiveMemoryWarning notification is sent to the controller I want to invoke a method in the main view. This means linking an IBOutlet in the controller (which has its own xib) to a method defined in the view (which has its own xib).
Apparently this CAN NOT be done when the xib's are loaded and must be done in the code itself. In OSX this can be accomplished by telling the NSBundle to load the necessary nib but simply loading an xib in the iPhone OS doesn't resolve the IBOutlet.
Can someone instruct me or direct me to sample code that shows how this is accomplished?
Charlie Dickman
email@hidden
_______________________________________________
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