获取touch在collectionView的位置
2018-01-23 本文已影响0人
osnail
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];