title: UITableView Checkmark ONLY ONE Row at a Time
body: <p>With this code, I can check multiple rows in a table.</p>
  <p>But what I want is to only have one row checked at a time. Here's my code:</p>
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
      
      [tableView deselectRowAtIndexPath:indexPath animated:YES];
      
      UITableViewCell *theCell = [tableView cellForRowAtIndexPath:indexPath];
      
      if (theCell.accessoryType == UITableViewCellAccessoryNone) {
          theCell.accessoryType = UITableViewCellAccessoryCheckmark;
      } else if (theCell.accessoryType == UITableViewCellAccessoryCheckmark) {
          theCell.accessoryType = UITableViewCellAccessoryNone;
      }
  }
  </code></pre>
  <p>If a user selects a different row, then I want the old row to simply <em>automatically</em> uncheck. Don't know how to do that.</p>