title: UITableview: How to Disable Selection for Some Rows but Not Others
body: <p>I am displaying in a group <code>tableview</code> contents parsed from XML. I want to disable the click event on it (I should not be able to click it at all) The table contains two groups. I want to disable selection for the first group only but not the second group. Clicking the first row of second group <code>navigates</code> to my tube <code>player view</code>. </p>
  
  <p>How can I make just specific groups or rows selectable?</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
  {
      if(indexPath.section!=0)
      if(indexPath.row==0)    
  
      [[UIApplication sharedApplication] openURL:[NSURL URLWithString:tubeUrl]];   
  }
  </code></pre>
  
  <p>Thanks.</p>