Skip to content

Pan gesture recognizer interferes with UITableViewCell reorder control #2

@leonbreedt

Description

@leonbreedt

Hi!

The pan gesture recognizer prevents the UITableViewCell reorder control from functioning correctly when the tableview is in editing mode, and the UITableView is contained within a controller that is a content controller.

I have successfully worked around this by adding NVSlideMenuController as a UIGestureRecognizerDelegate of the pan gesture recognizer, and in -gestureRecognizerShouldBegin:, returning NO if the content view controller is in editing mode, but this is not 100% reliable. E.g. if the content view controller is a navigation controller that wraps the actual content controller.

Another way could be to only respect horizontal pans, and somehow have the original gesture recognizer on the reorder control process vertical ones, but I did not investigate this option fully.

Leon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions