首页 > 其他 > 详细

点击Cell中的按钮时,如何取所在的Cell

时间:2016-03-22 10:17:47      阅读:118      评论:0      收藏:0      [点我收藏+]

点击Cell中的按钮时,如何取所在的Cell:

-(void)OnTouchBtnInCell:(UIButton *)btn 

CGPoint point = btn.center; 
point = [table convertPoint:point fromView:btn.superview]; 
NSIndexPath* indexpath = [table indexPathForRowAtPoint:point]; 
UITableViewCell *cell = [table cellForRowAtIndexPath:indexpath]; 

点击Cell中的按钮时,如何取所在的Cell

原文:http://www.cnblogs.com/kinghx/p/5305006.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!