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
Post a Comment