• 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: Changing UISwitch text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing UISwitch text


  • Subject: Re: Changing UISwitch text
  • From: Dave DeLong <email@hidden>
  • Date: Fri, 29 Apr 2011 16:33:53 -0700

On Apr 29, 2011, at 4:29 PM, Jon Sigman wrote:

> Is there a straightforward way to change the text on the UISwitch ("ON" and
> "OFF") to something else?

No, there is not.  UISwitch is not customizable.

> Alternatively, is there a way for a UIButton to act
> like a toggle (it stays highlighted until touched again)?

No, but either the -highlighted or -selected property (I forget which) of UIButton can be set independently of the touch handling.  Or you could find a 3rd party UISwitch replacement that does allow customization (there was a question about this a month or two ago).

Dave
_______________________________________________

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: 
 >Changing UISwitch text (From: Jon Sigman <email@hidden>)

  • Prev by Date: Re: Changing UISwitch text
  • Next by Date: Re: delete entries in a tableView with the backspace-key on the keyboard
  • Previous by thread: Re: Changing UISwitch text
  • Next by thread: Re: Changing UISwitch text
  • Index(es):
    • Date
    • Thread