• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do you enable a view controller to be instantiated programmatically or from a XIB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How do you enable a view controller to be instantiated programmatically or from a XIB?
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Getting a UITextview to accept a double tap
  • Next by Date: Re: Why does Xcode define IBOutlet with @synthesize?
  • Previous by thread: Getting a UITextview to accept a double tap
  • Next by thread: Re: How do you enable a view controller to be instantiated programmatically or from a XIB?
  • Index(es):
    • Date
    • Thread