更改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技术专栏