Trying to subclass UISwitch
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