更改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;
更多信息請查看IT技術(shù)專欄