我想在 UICollectionView 中使用 Swipe-Gesture 来选择多个单元格,我该如何实现呢?
谢谢
使用 UIPanGestureRecognizer 和allowsMultipleSelection 解决
UIPanGestureRecognizer *panning = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(handlePanning:)];
panning.minimumNumberOfTouches = 1;
panning.maximumNumberOfTouches = 1;
[self.storeLayoutGrid addGestureRecognizer:panning];