I donβt know how to prevent UIButton from firing, but the UITableViewCell has a showingDeleteConfirmation property that can be used to check if the Delete button is displayed. What am I doing, check this out in the UIButton action for TouchUpInside , e.g.
- (void)buttonPressed:(id)sender { if (!self.showingDeleteConfirmation) {
(This example is a subclass of UITableViewCell , so it uses self to access the property.)
This is in addition to
tableView.panGestureRecognizer.delaysTouchesBegan = YES;
which you already have, works to correctly recognize the napkins and the button action was not performed.
source share