title: How to select multiple rows in UITableview
body: <p>I want to select multiple rows in <code>UITableview</code>. I can select but my problem is when I scroll the <code>UITableView</code> there is an automatic selection of particular row.
  I am using this code :</p>
  
  <pre><code>-(void)tableView: (UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      UITableViewCell *selectedCell = [tableView cellForRowAtIndexPath:indexPath];
  
      if ([selectedCell accessoryType] == UITableViewCellAccessoryNone) {
          [selectedCell setAccessoryType:UITableViewCellAccessoryCheckmark];
  
  
      } 
      else {
          [selectedCell setAccessoryType:UITableViewCellAccessoryNone];
  
  
      }
  
  }
  </code></pre>