iOS中获取用户所点击的位置信息,并通过这个位置信息得到tableView的中的cell的indexPath.section

来源:互联网 发布:网络水晶头什么牌子好 编辑:程序博客网 时间:2024/05/24 02:36

- (void)onTapAvatarImage:(UITapGestureRecognizer*)gesture{    CGPoint currentPoint = [gesture locationInView:self.tableView];     NSIndexPath *currentPath = [self.tableView indexPathForRowAtPoint:currentPoint];      NSDictionary *usrInfo = [self.statusDataList objectAtIndex:currentPath.section];}



0 0
原创粉丝点击