iPhone更改UISwitch上的text
iPhone更改UISwitch上的text
发布时间:2015-06-05 来源:查字典编辑
摘要:更改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上的text1
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新IOS开发学习
热门IOS开发学习
编程开发子分类