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;
}