XWDragCellCollectionView icon indicating copy to clipboard operation
XWDragCellCollectionView copied to clipboard

编辑模式下发现一个问题

Open cjqzdm opened this issue 8 years ago • 0 comments

在编辑模式下,不能交换位置的cell,在点到这些cell上滚动的时候,无法滚动collectionview.

  • (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ _longPressGesture.enabled = [self indexPathForItemAtPoint:point];

    //获取手指所在的cell NSIndexPath *indexPath = [self indexPathForItemAtPoint:point]; if ([self xwp_indexPathIsExcluded:indexPath]) { _longPressGesture.enabled = false; }

    return [super hitTest:point withEvent:event]; }

并且要是能实现长按编辑删除的功能就更好了。

cjqzdm avatar Mar 17 '17 01:03 cjqzdm