您的位置:首页 > 移动开发 > IOS开发

iOS开发 获取相应自定义cell里控件的点击方法

2016-08-29 15:05 597 查看
-(void)stateBtnClicked:(id)sender event:(id)event{
NSLog(@"------------------------被点击了");
NSSet *touches =[event allTouches];
UITouch *touch =[touches anyObject];
CGPoint currentTouchPosition = [touch locationInView:_tableView];
NSIndexPath *indexPath= [_tableView indexPathForRowAtPoint:currentTouchPosition];
if (indexPath!= nil){
你想做的事!
}


网上找的

项目中用到了,分享给你!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  cell 控件
相关文章推荐