iPhone更改UISwitch上的text
摘要:更改UISwitch上的text为要更改Text的UISwitch建立IB连接:例如mySwitch,在代码中改变文字:((UILabel*...
更改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";
【iPhone更改UISwitch上的text】相关文章:
★ iOS开发中Date Picker和UITool Bar控件的使用简介