title: Calling uipangesture from uitableviewcell class when tapped a cell
body: <p>I am using <a href="https://github.com/alexbumbu/ABMenuTableViewCell" rel="nofollow noreferrer">ABMenuTableViewCell</a>  tableview controller in my application. I want to call <code>didSelectRowAtIndexPat</code>h when i swipe a <code>UITableViewCell</code>.</p>
  
  <p>Right now <code>didSelectRowAtIndexPath</code> only execute when I tap on a cell, I want to call it even when I swipe it. here is my <code>didSelectRowAtIndexPath</code> and <code>cellforRowAtIndexPath</code> methods code.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
          UILabel *likes;
          UILabel *downloads;
          static NSString *CellIdentifier = @"Cell";
          ABMenuTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
          if (cell == nil)
          {
              cell = [[ABMenuTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
              arrow = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"acc_arrow_back.png"]];
              arrow.frame = CGRectMake(300, 50, 5, 12);
              arrow.image = [arrow.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
              [arrow setTintColor:[UIColor colorWithRed:(191/255.0) green:(2/255.0) blue:(6/255.0) alpha:1]];
              [cell.contentView addSubview:arrow];
  
  UIImageView *likes_img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"social.png"]];
              likes_img.frame = CGRectMake(15, 80, 15, 15);
              likes_img.image = [likes_img.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
              [likes_img setTintColor:[UIColor colorWithRed:(191/255.0) green:(2/255.0) blue:(6/255.0) alpha:1]];
              [cell.contentView addSubview:likes_img];
  
              likes =[[UILabel alloc]initWithFrame:CGRectMake(33, 78, 80, 20)];
              likes.tag = 1001;    // set a tag for this View so you can get at it later
              likes.textColor=[UIColor darkGrayColor];
              likes.font=[UIFont fontWithName:@"Helvetica" size:10.0f];
              likes.text=[[rssOutputData objectAtIndex:indexPath.row]xmllikes];
              [cell.contentView addSubview:likes];
              cell.detailTextLabel.textColor = [UIColor darkGrayColor];
  
              UIImageView *downloads_img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"download.png"]];
              downloads_img.frame = CGRectMake(55, 79, 15, 15);
              downloads_img.image = [downloads_img.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
              [downloads_img setTintColor:[UIColor colorWithRed:(191/255.0) green:(2/255.0) blue:(6/255.0) alpha:1]];
              [cell.contentView addSubview:downloads_img];
  
              downloads =[[UILabel alloc]initWithFrame:CGRectMake(73, 78, 80, 20)];
              downloads.tag = 1002;    // set a tag for this View so you can get at it later
              downloads.textColor=[UIColor darkGrayColor];
              downloads.font=[UIFont fontWithName:@"Helvetica" size:10.0f];
              downloads.text=[[rssOutputData objectAtIndex:indexPath.row]xmldownloads];
              [cell.contentView addSubview:downloads];
              cell.detailTextLabel.textColor = [UIColor darkGrayColor];
          }
          else
          {
              // use viewWithTag to find lblNombre in the re-usable cell.contentView
              likes = (UILabel *)[cell.contentView viewWithTag:1001];
              downloads = (UILabel *)[cell.contentView viewWithTag:1002];
  
          }
          cell.textLabel.text = [[rssOutputData objectAtIndex:indexPath.row]xmlsinger];
          cell.detailTextLabel.text = [[rssOutputData objectAtIndex:indexPath.row]xmltitle];
          // custom menu view
          NSString *nibName = @"ABCellMailStyleMenuView";
          ABCellMenuView *menuView = [ABCellMenuView initWithNib:nibName bundle:nil];
          menuView.delegate = self;
          menuView.indexPath = indexPath;
          cell.rightMenuView = menuView;
          return cell;
  }
  
  
     - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
     {
              [tableView deselectRowAtIndexPath:indexPath animated:YES];
     }
  </code></pre>
  
  <p>And these are the methods in cell class <code>
  - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer</code> and 
  <code>- (void)swipeGesture:(UIPanGestureRecognizer *)gesture</code>
  here is when i swipe
  <img src="https://i.stack.imgur.com/ImD24.png" alt="enter image description here"></p>