Please do not set the delegate to UISwipeGestureRecognizer
Write this in viewDidLoad
or where you started your UITableView
UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(callYourMethod:)]; swipeRight.direction = UISwipeGestureRecognizerDirectionRight; [self.tblView addGestureRecognizer:swipeRight];
There is no need to write anything in the method below.
- (void)callYourMethod:(UISwipeGestureRecognizer *)recognizer { }
source share