SwipeTableView icon indicating copy to clipboard operation
SwipeTableView copied to clipboard

【- (void)swipeTableView:(SwipeTableView *)swipeView didSelectItemAtIndex:(NSInteger)index】never called

Open wangruocong opened this issue 7 years ago • 1 comments

wangruocong avatar Mar 21 '17 08:03 wangruocong

This protocol method just like - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath.

So, only when the content view (your custom item view at each index) in the cell didn't response the touch event, this method will be called.

This the original code:

- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    if (_delegate && [_delegate respondsToSelector:@selector(swipeTableView:didSelectItemAtIndex:)]) {
        [_delegate swipeTableView:self didSelectItemAtIndex:indexPath.row];
    }
}

Then, you should check whether some views subclass of UIControl are added to response the touch event, or other ways intercepted the touch event.

liangdrime avatar Mar 21 '17 09:03 liangdrime