Re: How to subclass UIButton?
Re: How to subclass UIButton?
- Subject: Re: How to subclass UIButton?
- From: Jack Nutting <email@hidden>
- Date: Thu, 8 Apr 2010 08:59:34 +0200
On Thu, Apr 8, 2010 at 8:42 AM, WT <email@hidden> wrote:
>
> Is the fact that -initWithFrame: is the designated initializer documented anywhere? The docs for UIButton don't mention it. If this is documented and/or won't change, then it's the solution I've been looking for.
>
It is documented, but in a way that might not be terribly obvious.
The docs for UIButton don't mention a designated initializer, and the
docs for its parent UIControl don't help either, but if you go one
further, the UIView docs tell you this. In general, if the docs for a
class don't specify a designated initializer, you can search up the
inheritance tree until you find one.
--
// jack
// http://nuthole.com
// http://learncocoa.org
_______________________________________________
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