title: UITableView: How to get all rows for a particular section?
body: <p><strong>What I want?</strong><br>
  I want to add radio button functionality where a user in particular section can only select one row  </p>
  
  <p><img src="https://i.stack.imgur.com/9xTel.png" alt="enter image description here"></p>
  
  <p><strong>How am I doing it?</strong><br>
  I added <code>UISwitch</code> and based on what row user click I would like to do the following</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
      if (indexPath.section == 1 || indexPath.section == 2) {
  
        // disable all the rows of this section except indexPath.row          
      }
  }
  </code></pre>
  
  <p><strong>Where am I stuck?</strong>  </p>
  
  <p>How do I get all the rows for a given section in <code>UITableView</code>?</p>
  
  <p>P.S: I am a week old to <code>iOS</code> and learning, so bear with me if this is a stupid question  </p>