title: Checkbox button in table view in iPhone
body: <p>I want to create a check box in each row in in tableview. My code works for only one checkbox. If  i have more than 1 it fails. My code is </p>
  
  <pre><code>  UIButton   * checkBox=[UIButton buttonWithType:UIButtonTypeCustom];
          checkBox.tag=indexPath.row;
          checkBox.frame=CGRectMake(270,15, 20, 20);
          [cell.contentView addSubview:checkBox];
          [checkBox setImage:[UIImage imageNamed:@"selectedBoxWith.png"] forState:UIControlStateNormal];
          [checkBox addTarget:self action:@selector(checkBoxClicked:) forControlEvents:UIControlEventTouchUpInside];
  
  -(void)checkBoxClicked:(id)sender{
  if(self.isChecked ==NO){
    self.isChecked =YES;
    [sender  setImage:[UIImage imageNamed: @"selectedBoxWithTik.png"] forState:UIControlStateNormal];
  }else
  {
     self.isChecked =NO;
    [sender setImage:[UIImage imageNamed:@"selectedBoxWith.png"]forState:UIControlStateNormal];
  
      }
  }
  </code></pre>
  
  <p>How can I handle it for more checkbox?</p>