iphone更改uiswitch上的text

字號(hào):


    更改uiswitch上的text
    為要更改text的uiswitch建立ib連接:例如myswitch,在代碼中改變文字:
    ((uilabel *)[[[[[[self.myswitch subviews] lastobject] subviews] objectatindex:2] subviews] objectatindex:0]).text = @foo;
    ((uilabel *)[[[[[[self.myswitch subviews] lastobject] subviews] objectatindex:2] subviews] objectatindex:1]).text = @bar;