SwipeTableView
SwipeTableView copied to clipboard
【- (void)swipeTableView:(SwipeTableView *)swipeView didSelectItemAtIndex:(NSInteger)index】never called
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.