iphone - UISwitch - change from on/off to yes/no -


does know of way can change text label on , off yes , no.

i did

            ((uilabel *)[[[[[[switchcontrol subviews] lastobject] subviews] objectatindex:2] subviews] objectatindex:0]).text = @"yes";         ((uilabel *)[[[[[[switchcontrol subviews] lastobject] subviews] objectatindex:2] subviews] objectatindex:1]).text = @"no"; 

however, release of ios 4.2, no longer supported (this wasn't recommended apple anyway)

my client insisting on yes/no switches. i'd appreciate advice!

many thanks

you need implement custom uiswitch that. or use 1 of implemented :) (check this question , this post)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -