UITableViewCell里加了个UISwitch
来源:互联网 发布:用doc运行java编译乱码 编辑:程序博客网 时间:2024/04/28 21:08
http://www.cocoachina.com/ask/questions/show/98163?tab=newest
我在UITableViewCell里加了个UISwitch,点击这个UISwitch,出现响应的点击事件怎么做;
[cell.switch addTarget:self action:@selector(switchAction:)forControlEvents:UIControlEventValueChanged];
-(void)switchAction:(id)sender{
//
XXXCell *cell =(XXXCell*)[[sender superview] superview];
NSIndexPath* index=[self.tableview indexPathForCell:cell];
//------
}
0 0
- UITableViewCell里加了个UISwitch
- 表单里加了个一个下拉列表
- iOS开发之UitableViewCell中UISwitch的使用,代理实现
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- UISwitch
- 17岁女生被劫持16小时 主动找绑匪聊天脱险
- Bridge设计模式 + FilenameFilter总结
- 动态改变空间的位置和大小
- (standard c libraries translation )seteuid
- 字符编码
- UITableViewCell里加了个UISwitch
- 【STM32F429-DISCOVERY学习笔记】STM32F429驱动SDRAM(IS42S16400J)详解
- USB VID 查询
- Spring中AOP基于Annotation配置常用声明
- birt报表开发菜鸟经验集(二)
- Android签名机制:生成keystore、签名、查看签名信息
- java使用正则表达式获取字符串中的数字
- PL/SQL Developer 使用错误的tnsnames.ora,如何修改?
- 红包来了,机会来了