title: How to deselect a selected UITableView cell?
body: <p>I am working on a project on which I have to preselect a particular cell.</p>
  
  <p>I can preselect a cell using <code>-willDisplayCell</code>, but I can't deselect it when the user clicks on any other cell.  </p>
  
  <pre><code>- (void)tableView:(UITableView*)tableView 
          willDisplayCell:(UITableViewCell*)cell
          forRowAtIndexPath:(NSIndexPath*)indexPath
  { 
      AppDelegate_iPad *appDelegte = 
        (AppDelegate_iPad *)[[UIApplication sharedApplication] delegate];
  
      if ([appDelegte.indexPathDelegate row] == [indexPath row])
      {
          [cell setSelected:YES];    
      } 
  }
  
  - (void)tableView:(UITableView *)tableView 
          didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
      AppDelegate_iPad *appDelegte = 
        (AppDelegate_iPad *)[[UIApplication sharedApplication] delegate];
  
      NSIndexPath *indexpath1 = appDelegte.indexPathDelegate;
      appDelegte.indexPathDelegate = indexPath;
      [materialTable deselectRowAtIndexPath:indexpath1 animated:NO];
  }
  </code></pre>
  
  <p>Can you help?</p>