i have to change the Label of UISWITCH from ON-OFF to YES-NO.i want this method to be implement in seperate class that this methods should be access by other classes. i have tried to implement the snippets provided in the cook book.But hard luck .
this link is opening the same page.
iamsult
2009-06-11 13:31:17
The link works fine here.
ceejayoz
2009-06-11 13:44:08
could u please send the complete url
iamsult
2009-06-11 14:20:19
http://arstechnica.com/apple/guides/2009/03/iphone-dev-robust-uiswitch-label-swaps.ars
rein
2009-06-11 17:56:03
This code is awesome... I just made a static class in my Utilities with that. Works well.
tul697
2010-08-27 20:13:36
A:
Take a look at the custom UISwitch control that I built to allow me to change the background color of the control. You could use the same method to change the text, the font, or the text color very easily. As opposed to the previous answer, you could make the text look nice since it is prerendered as an image instead of a label.
http://www.homick.com/posts/custom-uiswitch-control
The code is available on Github and includes a PSD that is used to build three different png files that the control uses. You can modify the contents of the psd to recreate the png files in whatever format you like. Swap those into the control and away you go.
Duane Homick
2009-11-13 14:12:32