ios-根据单元格里的控件tag值,在方法外获得对应的section与row的值
时间:2014-09-01 12:05:33
收藏:0
阅读:266
在cell的代理方法里:cellForRowAtIndexPath
btn.tag = indexPath.section *100 + indexPath.row;
[cell.exitPersonBtn addTarget:self action:@selector(exitPersonBtnClick:) forControlEvents:UIControlEventTouchUpInside];
btn点击后触发的方法里,通过tag值获得cell里对应的控件
GroupMemberData *grouData = [[self.sectionArydata objectAtIndex:send.tag/100] objectAtIndex:send.tab%100];(方法外获得对应单元格的tag值)
原文:http://www.cnblogs.com/xm5mao/p/3948753.html
评论(0)