title: iPhone :UITableView CellAccessory Checkmark
body: <p>In iPhone App  on click of table view cell I want to display Table view  cell Accessory type Check mark for that on didSelectRowAtIndexPath i am writing code</p>
  
  <pre><code>if(indexPath.row ==0)
  {
  [tableView cellForRowAtIndexPath:indexPath].accessoryType=UITableViewCellAccessoryCheckmark;
   }
  </code></pre>
  
  <p>and displaying  check marks.</p>
  
  <p>but in my case i wnt to allow user to check only on cell at a time  means if user select other row then that row should checked and  previously checked  should be unchecked</p>
  
  <p>How can I achieve that? </p>