Re: iOS: multiple view controllers, one nib?
Re: iOS: multiple view controllers, one nib?
- Subject: Re: iOS: multiple view controllers, one nib?
- From: Nathan Sims <email@hidden>
- Date: Thu, 19 May 2011 09:38:09 -0700
On May 18, 2011, at 9:12 PM, Shawn Erickson wrote:
> initWithNibName:bundle: instantiates a unique object graph from the
> objects serialized in the xib each time it is called. This object
> graph is connected with the files owner as defined in your xib. I
> assume the QuadNViewController class have a common base class with the
> actions and outlets defined that your QuadViewiPad expect and that
> class is setup as the class for the files owner.
>
> So nothing prevents what you are doing but as Luke pointed out some
> assumptions exist the could be problematic for you outside of your
> xib/nib question.
>
> You could always instantiate a xib (nib) yourself without using a
> UIViewController subclass and still follow the model you are thinking.
Thanks Shawn. I'm an iOS newb, so I realize I shouldn't try to force things to work "my" way, to "fight the framework". For the first go, I've taken Luke's advice and used a single view controller for now. This approach has the redeeming quality that it works! Once I get all the requirements implemented in my initial release, I'll have a better understanding of the dynamics of iOS and can then go back and refactor/rearchitect things to make it more elegant. It's an iterative learning process, quite fun actually!
_______________________________________________
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