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: Wed, 18 May 2011 12:44:25 -0700
Okay, that looks like a "go". I certainly have my work cut out for me :)
Thanks Luke, Eric, Mikkel.
-Nate
On May 18, 2011, at 12:40 PM, Mikkel Islay wrote:
> On 18 May 2011, at 20:32, Nathan Sims wrote:
>
>> Hmm, but then how would each custom class communicate with the view elements? NSNotifications?
>
> From the View Controller Programming Guide:
> Note: If you want to divide a view hierarchy into multiple subareas and manage each one separately, use generic controller objects (custom objects descending from NSObject) instead of view controller objects to manage each subarea. Then use a single view controller object to manage the generic controller objects.
> http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html#//apple_ref/doc/uid/TP40007457-CH112-SW10
>
> NSNotification would be a way for your UIViewController to observe drawing-related changes to your views.
>
>
>> On May 18, 2011, at 12:27 PM, Eric E. Dolecki wrote:
>>
>>> I don't think so but you could always associate a custom Class with each of the UIViews to tuck most of the UIView specific code away from the view controller's code.
>>>
>
> Mikkel
_______________________________________________
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