Re: Trying to subclass UISwitch
Re: Trying to subclass UISwitch
- Subject: Re: Trying to subclass UISwitch
- From: WT <email@hidden>
- Date: Mon, 04 Apr 2011 15:29:54 -0300
On Apr 4, 2011, at 1:20 PM, Philip Ershler wrote:
> 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
Hi Phil,
I filed a request to Apple's bug system precisely for this functionality some 2 years ago, and got a reply back saying that it was a duplicate of bug ID# 5792695. I'm still waiting, but I suppose Apple is going to get to it at some point and offer a customizable UISwitch.
Back then, my solution was to use a UISegmentedControl with two tabs but I see now that RCSwitch looks awesome and is probably a better alternative.
Regards,
WT_______________________________________________
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