title: How to swipe tableviewcell for particular row in a section
body: <p>I have a custom <code>UITableview</code> which is diveded into sections, I have implemented <code>UISwipeGestureRecognizer</code> into it.  When I swipe my table view cell, a <code>UIButton</code> appears. The problem I am now facing is when I swipe the first table view cell, another cell in successive sections also recognizes the swipe gesture. I am not able to find how to swipe a cell of particular a section without other cells of other sections getting swiped. </p>
  
  <p>I just want to swipe, I don't want to delete/insert or add check marks.</p>
  
  <p><strong>UPDATE</strong>.... This is my <strong>customCell.m
   Tableview = customTableView</strong></p>
  
  <pre><code>       - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
          {
              self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
              if (self)
              {
                  self.backgroundColor = [UIColor clearColor];
                  self.contentView.backgroundColor = [UIColor clearColor];
  
                  self.symptomCellImageView.contentMode=UIViewContentModeScaleToFill;
  
  
                  swipeButton = [[UIButton alloc]init];
                  swipeButton .frame = CGRectMake(220.0, 8.0, 30.0, 30.0);
                  swipeButton .hidden = NO;
  
  }
  </code></pre>
  
  <p><strong>In my MainViewController.m</strong></p>
  
  <pre><code>  -(void)viewDidLoad
      {        
  
           symptomSwipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeHandleLeft)];
           symptomSwipeLeft .numberOfTouchesRequired = 1;
           symptomSwipeLeft .direction = UISwipeGestureRecognizerDirectionLeft;
           [customTableView addGestureRecognizer:symptomSwipeLeft];
           [self addGestureRecognizer:symptomSwipeRight];
  
            symptomSwipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeHandleRight)];
             symptomSwipeRight.numberOfTouchesRequired = 1;
             symptomSwipeRight.direction = UISwipeGestureRecognizerDirectionRight;
             [customTableView addGestureRecognizer:symptomSwipeRight];
             [self addGestureRecognizer:symptomSwipeRight];
  
      }
  
  
  - (void)swipeHandleLeft:(UISwipeGestureRecognizer *)aSwipeGestureRecognizer
  {
       CGPoint location = [aSwipeGestureRecognizer locationInView:customTableView ];
       NSIndexPath * indexPath = [customTableView indexPathForRowAtPoint:location];
  
       if(indexPath)
  {
          UITableViewCell * cell = (UITableViewCell *)[customTableView cellForRowAtIndexPath:indexPath];
         [cell.swipeButton addTarget:self action:@selector(secondPageButton:) forControlEvents:UIControlEventTouchUpInside];
  
                }
  }
  
  
  
  - (void)swipeHandleRight:(UISwipeGestureRecognizer *)aSwipeGestureRecognizer
   {
       CGPoint location = [aSwipeGestureRecognizer locationInView:customTableView ];
       NSIndexPath * indexPath = [customTableViewindexPathForRowAtPoint:location];
  
       if(indexPath)
  {
         UITableViewCell * cell = (UITableViewCell *)[customTableView cellForRowAtIndexPath:indexPath];
          [cell.swipeButton addTarget:self action:@selector(secondPageButton:) forControlEvents:UIControlEventTouchUpInside];
                }
   }
  </code></pre>