How do you enable a view controller to be instantiated programmatically or from a XIB?
How do you enable a view controller to be instantiated programmatically or from a XIB?
- Subject: How do you enable a view controller to be instantiated programmatically or from a XIB?
- From: G S <email@hidden>
- Date: Fri, 23 Sep 2011 23:02:56 -0700
As a follow-up to my question about objects not being loaded from a XIB:
The view controller class I was using was not designed to be stored in
a XIB; it had no initWithNibName method and did have a loadView
method. The Apple doc makes it clear that these can't coexist in the
same class.
So is it not practical to have a view controller that can be
instantiated either way? If it is practical, how would one do it?
Explicitly load from a previously specified XIB in loadView?
Thanks for any insight.
_______________________________________________
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