I am trying to get index path of cell when we make swipe.
I used below code to recognise cell swipe
in cellForRowAtIndexPath
UISwipeGestureRecognizer *cellRightSwipe = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(cellRightSwipeGeture:)];
[cellRightSwipe setDirection:UISwipeGestureRecognizerDirectionRight];
[cell addGestureRecognizer:cellRightSwipe];
and action for RightSwipe
-(void)cellRightSwipeGeture:(UISwipeGestureRecognizer *)gestureRecognizer {
NSIndexPath *indexPath ;
UITableViewCell *cell = [_subItemTbl cellForRowAtIndexPath:indexPath];}
Here i can't identify that which cell was i swiped .