title: Disable TableView cells
body: <p>How can I disable all cells, except the first 3 cells of a UITableView?</p>
  
  <p>This returns nil if one of the disabled cells is selected:</p>
  
  <pre><code>- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
  if ( indexPath.row &gt;= 3 ) {
      [[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:2 inSection:0]] setAlpha:0.5];
      return nil;
  }
  
  return indexPath; }
  </code></pre>
  
  <p><strong>How can I make the disabled cells "visible"?</strong>
  This works, but I only on start up, because the indexPath of every cell changes while scrolling (reuse cells):</p>
  
  <pre><code>for(int i = 3; i &lt;= 100; i++) {
      [[self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:0]] setAlpha:0.5];
  }
  </code></pre>