Thanks. I won't be using Storyboard instances or xib. Probably ever. But very 
good to know. 

Eric

Sent by Eric's faithful iPad. 

On Jan 5, 2013, at 3:24 AM, Chris Hanson <c...@me.com> wrote:

> On Jan 3, 2013, at 5:28 PM, Eric Dolecki <edole...@gmail.com> wrote:
> 
>> I am creating a UIView-based control that I would also like to pass in 
>> parameters at the time of creation. Is this doable? I don't want to keep 
>> calling methods on my object if I can pass all with initwithframe somehow.
> 
> This is only the case if you instantiate it directly rather than in a xib or 
> storyboard. If you do that, -initWithFrame: will be your designated 
> initializer as with all custom views.
> 
> You can supply other values via the custom properties mechanism in IB; this 
> will invoke the setters for those properties via KVC, but only supports 
> setting properties of plist types.
> 
>  -- Chris

_______________________________________________

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

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

Reply via email to