UITouch *touch = event.allTouches.anyObject;
CGPoint point = [touch locationInView:self.collectionView];
NSIndexPath *indexPath = [self.collectionView indexPathForItemAtPoint:point];
UITouch *touch = event.allTouches.anyObject;
CGPoint point = [touch locationInView:self.collectionView];
NSIndexPath *indexPath = [self.collectionView indexPathForItemAtPoint:point];
本文标题:获取touch在collectionView的位置
本文链接:https://www.haomeiwen.com/subject/tefsaxtx.html
网友评论