Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编辑模式下发现一个问题 #4

Open
cjqzdm opened this issue Mar 17, 2017 · 0 comments
Open

编辑模式下发现一个问题 #4

cjqzdm opened this issue Mar 17, 2017 · 0 comments

Comments

@cjqzdm
Copy link

cjqzdm commented Mar 17, 2017

在编辑模式下,不能交换位置的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];
    }

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant