• 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
Trying to subclass UISwitch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to subclass UISwitch


  • Subject: Trying to subclass UISwitch
  • From: Philip Ershler <email@hidden>
  • Date: Mon, 04 Apr 2011 10:20:47 -0600

Hi,
	After beating my head against the wall trying to subclass UISwitch, so that I might change the "text" for the two states, I finally noticed that there is a statement in the docs that UISwitch cannot be subclassed. (Please no wise cracks that I should have seen that straight away, I get to claim old eyes). So now I have come to realize that UISwitch is just a special case of UISlider.
	I see that it is possible to set images for all the different parts of a UISlider. I'd like to make a UISlider look just like a UISwitch. Is there an easy way to get the UIImage specs so that I can build a UISlider that looks just like a UISwitch just with different ON and OFF "text". I'm sorry if this is a real naive question.

Thanks, Phil

Philip R. Ershler Ph.D.
University of Utah
Cardiovascular Research and Training Institute
95 South 2000 East
Salt Lake City, UT 84112-5000

phone: (801) 230-8771
alt ph: (801) 587-9528
fax: (801) 581-3128
e-mail: email@hidden


_______________________________________________

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

  • Follow-Ups:
    • Re: Trying to subclass UISwitch
      • From: Jeffrey Walton <email@hidden>
    • Re: Trying to subclass UISwitch
      • From: WT <email@hidden>
    • Re: Trying to subclass UISwitch
      • From: Roger Dalal <email@hidden>
  • Prev by Date: Re: NSStatusBar
  • Next by Date: Re: Trying to subclass UISwitch
  • Previous by thread: [MEET] Toronto Cocoaheads / tacow - April 12
  • Next by thread: Re: Trying to subclass UISwitch
  • Index(es):
    • Date
    • Thread