title: UITableView Cell with CheckMarks
body: <p>I have got an iphone project that has a <code>UITableView</code> which is populated from Core Data..</p>
  
  <p>When a cell is selected, the user is directed to a new view controller (see code line below) which shows additional information about that cell entry (from core data)</p>
  
  <pre><code>[self presentModalViewController:noteViewController animated:YES]
  </code></pre>
  
  <p>What i want to do is to be able to set some sort of checkmark on either side of each cell to represent whether the task is complete of incomplete..</p>
  
  <p>I have read that i could do this using:</p>
  
  <pre><code>UITableViewCellAccessoryCheckmark
  </code></pre>
  
  <p>but i am not sure how to implement is as currently </p>
  
  <pre><code>didSelectRowAtIndexPath:
  </code></pre>
  
  <p>is being used to present the modal view controller..</p>
  
  <p>So essentially i want to know if there is a method for changing the state of a cell's accessory from checkmark to nothing (and vice versa) independently.. in the sense that if the actual checkmark is touch.. it shows it.. and if it is touched again, it hides it.. </p>
  
  <p>Any help would be greatly appreciated!</p>