Re: What's the recommended way to have multiple views on one tab?
Re: What's the recommended way to have multiple views on one tab?
- Subject: Re: What's the recommended way to have multiple views on one tab?
- From: G S <email@hidden>
- Date: Thu, 9 Dec 2010 13:04:16 -0800
On Thu, Dec 9, 2010 at 2:49 AM, John Joyce
<email@hidden> wrote:
> Here you go Gavin:
> Creating and Managing a View Hierarchy
> This is in the View Programming Guide For iOS
Thanks, John. Although that link didn't work, I did look at what
seems to be the current equivalent area of the docs.
One extra requirement in my case is that I be able to load a bunch of
controls with the view, and spending ages to draw the layout
programmatically through trial and error is just not going to happen.
So that means I need to load these views from XIBs. Fortunately, if
you set up XIBs containing views and connect their outlets and actions
to the controller that'll do the loading, those connections do get
made when you load the XIBs dynamically from multiple files. Don't
know what happens if you have XIBs with competing connections; I guess
the last-loaded one takes precedence.
At runtime I can lazily load those XIBs and have the controller say
self.view = oneOfTheLoadedOnes
_______________________________________________
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