1

I have seen other questions on StackOverflow and have done the following:

UISwipeGestureRecognizer *swipeGestureLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(viewDidSwipeLeft:)];
swipeGestureLeft.delegate = self;
[swipeGestureLeft setDirection:UISwipeGestureRecognizerDirectionLeft];
[self.mainView addGestureRecognizer:swipeGestureLeft];

UISwipeGestureRecognizer *swipeGestureRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(viewDidSwipeRight:)];
swipeGestureRight.delegate = self;
[swipeGestureLeft setDirection:UISwipeGestureRecognizerDirectionRight];
[self.mainView addGestureRecognizer:swipeGestureRight];

I do not get viewDidSwipeLeft: calls

I added this in the tableView class too..

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return UITableViewCellEditingStyleNone;
}
Prathamesh Saraf
  • 709
  • 4
  • 14
Ashish Awaghad
  • 2,822
  • 3
  • 24
  • 33

0 Answers0