title: didSelectRowAtIndexPath selecting multiple tableView cell accessory's
body: <p>I have a tableView containing a list of user names that are indexed into sections and rows alphabetically. When I tap on one of the rows in a section, the correct user is added to my recipients array and a checkmark is places in the cell besides their name.. but a checkmark is also displayed next to other usernames that have not been selected and are not in the recipients array. I have tried to reassign the selected cell with a new indexPath (see code below) but have not been able to get it to work. It registers the correct path, but won't assign it. I am using a similar method for assigning the users the the rows in each section with no trouble but for some reason the accessory marks are giving me problems. I've seen some other threads on overflow about this same topic but wash;'t able to come to a solution for my case. any clues? cheers!</p>
  
  <pre><code> - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
      int row = indexPath.row;
      int section = indexPath.section;
      NSIndexPath *newIndexPath = [NSIndexPath indexPathForRow:row inSection:section];
  
      [tableView deselectRowAtIndexPath:newIndexPath animated:NO];
  
      UITableViewCell *cell = [tableView cellForRowAtIndexPath:newIndexPath];
  
      NSArray *array = [self.sectionsArray objectAtIndex:indexPath.section];
      PFUser *user = [array objectAtIndex:indexPath.row];
  
      if (cell.accessoryType == UITableViewCellAccessoryNone) {
          cell.accessoryType = UITableViewCellAccessoryCheckmark;
          [self.recipients addObject:user];
      }
      else {
          cell.accessoryType = UITableViewCellAccessoryNone;
          [self.recipients removeObject:user];
      }
  
      [self.currentUser saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
          if (error) {
              NSLog(@"Error %@ %@", error, [error userInfo]);
          }
      }];
  </code></pre>
  
  <p>and here's the cellForRowAtIndexPath:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
      NSString *CellIdentifier = @"cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
      // Get the user names from the array associated with the section index in the sections array.
      NSArray *userNamesInSection = (self.sectionsArray)[indexPath.section];
  
      // Configure the cell with user name.
      UserNameWrapper *userName = userNamesInSection[indexPath.row];
      cell.textLabel.text = userName.user;
  
      return cell;
  }
  </code></pre>