Thanks for the responses.  The problem turned out to be that my view
controller's parent class had defined loadView, which didn't call the
base (UIViewController) loadView (and indeed, the documentation says
that a loadView method should NOT call the base).

Thus the XIB-loading mechanism was never called.  Eliminating the
overriding loadView method did fix the problem when instantiating from
a XIB.

The Apple doc says you should never call loadView explicitly, and
never override it if your view controller's being loaded from a XIB.
So it's impossible to have a view controller that can be instantiated
both programmatically and from a XIB?
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to