获取touch在collectionView的位置

2018-01-23  本文已影响0人  osnail
UITouch *touch = event.allTouches.anyObject;
CGPoint point = [touch locationInView:self.collectionView];
NSIndexPath *indexPath = [self.collectionView indexPathForItemAtPoint:point];
上一篇 下一篇

猜你喜欢

热点阅读