手机
当前位置:查字典教程网 >编程开发 >IOS开发 >iPhone更改UISwitch上的text
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上的text1

【iPhone更改UISwitch上的text】相关文章:

一个iOS上的秒表小应用的实现方法分享

比较IOS开发中常用视图的四种切换方式

iOS开发中UISwitch按钮的使用方法简介

react-native 之布局篇

iOS中SQLite使用教程

IPad/IPhone 开发中的布局问题

iOS仿热门话题热点轮播界面tableView

iOS开发之清除缓存功能的实现

iOS开发中Date Picker和UITool Bar控件的使用简介

IOS改变UISearchBar中搜索框的高度

精品推荐
分类导航