title: Problem implementing a UITableView that allows for multiple row selections
body: <p>This</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
  UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
  
  if (cell.accessoryType == UITableViewCellAccessoryNone) {
      cell.accessoryType = UITableViewCellAccessoryCheckmark;
  }
  else {
      cell.accessoryType = UITableViewCellAccessoryNone;
  }
  
  [tableView deselectRowAtIndexPath:indexPath animated:YES];
  </code></pre>
  
  <p>}</p>
  
  <p>... modifies the "accessoryType" of every 6th cell INSTEAD of just the selected row.  What am I missing?</p>
  
  <p>Thanks</p>
  
  <p>UPDATED: Here is the cell creation code ...</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      static NSString *TC = @"TC";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: TC];
      if (cell == nil) {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:PlayerTableViewCell] autorelease];
      }
  
      NSUInteger row = [indexPath row];
      cell.textLabel.text = [NSString stringWithFormat:@"Person %d", row+1];
  
      return cell;
  }
  </code></pre>
  
  <p><strong>MY SOLUTION</strong> based on the marked answer below is ...</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      // EVERY row gets its one Identifier
      NSString *TC = [NSString stringWithFormat: @"TC%d", indexPath.row];
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier: TC];
      if (cell == nil) {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:TC] autorelease];
      }
  
      NSUInteger row = [indexPath row];
      cell.textLabel.text = [NSString stringWithFormat:@"Person %d", row+1];
  
      return cell;
  }
  </code></pre>
  
  <p>If there is a better way I'm all ears.  Would be nice if we could just change the SPECIFIC Cell according to the NSIndexPath passed in someday (at least that seems a whole lot more intuitive to me).</p>