• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to subclass UIButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to subclass UIButton? (From: WT <email@hidden>)
 >Re: How to subclass UIButton? (From: john chen <email@hidden>)
 >Re: How to subclass UIButton? (From: WT <email@hidden>)
 >Re: How to subclass UIButton? (From: Jack Nutting <email@hidden>)
 >Re: How to subclass UIButton? (From: WT <email@hidden>)

  • Prev by Date: Query on File Wrapping
  • Next by Date: Re: How does Finder determine when a file is busy being written to the disk?
  • Previous by thread: Re: How to subclass UIButton?
  • Next by thread: Character Map
  • Index(es):
    • Date
    • Thread