On Apr 4, 2011, at 12:29 PM, WT wrote:

> 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


Yeah the link Roger Dalal pointed me to gets you the project to build any sort 
of Switch with any text and any colors you may wish. It also faults to a 
standard looking switch. It's great!

Phil

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to