title: putting limitation for checkbox in UITableView Objective-C
body: <p>I create table programmatically with different sections and rows, i create check box inside table with pictures as a box</p>
  
  <p>I want to put limitation for this check box </p>
  
  <p>would you please help me </p>
  
  <p><strong>Edit :</strong></p>
  
  <p><strong>my question is how can I choosing just one check box- limitation of choice</strong></p>
  
  <p>and also how can I unselect a box and remove the checkmark</p>
  
  <p>here is code for check box row</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
  {
      NSString *key = [[self sectionKeys] objectAtIndex:[indexPath section]];
      NSArray *contents = [[self sectionContents] objectForKey:key];
      NSString *contentForThisRow = [contents objectAtIndex:[indexPath row]];
  
      if (indexPath.section != 2) {
          UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
          cell.textLabel.text =contentForThisRow;
          return cell;
      }
      else {
          CheckBoxAbsenceTableViewCell *cell = (CheckBoxAbsenceTableViewCell*)[tableView dequeueReusableCellWithIdentifier:@"CheckBoxAbsenceTableViewCell"];
  
          cell.imageView.image=[UIImage imageNamed:@"emptycheck-box.png"];
          cell.checkBox.image = image;
          if(indexPath.row == 0){
              cell.absenceCode.text =@"Red";
          }
          else if (indexPath.row == 1){
              cell.absenceCode.text =@"Green";
  
          }else if(indexPath.row == 2){
              cell.absenceCode.text =@"Blue";
          }
          return cell;
      }
  }  
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
        CheckBoxAbsenceTableViewCell *selectedCell = [tableView cellForRowAtIndexPath:indexPath];
        selectedCell.checkBox.image =[UIImage imageNamed:@"checkmark.png"];
    }
  </code></pre>
  
  <p>Thanks in advance!</p>