title: didSelectRowAtIndexPath with section
body: <p>I have a UITableView which I have assigned sections. When using didSelectRowAtIndex with indexPath.row I am not getting the correct value. Let's say I'm in section 2, then it starts the row index at 0 again and therefore I am getting the wrong index.</p>
  
  <p>Can anyone tell me how to fix this? I realize that it is possible to get the section index by indexPath.section but I can't figure out how to use this.</p>
  
  <pre><code>bandDetailViewController.band = [self.programArray objectAtIndex:indexPath.row];
  </code></pre>
  
  <p>I hope you can help me. Thanks in advance :-)</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Sample data. My cells for the table view is loaded from this plist.</p>
  
  <pre><code>&lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;name&lt;/key&gt;
          &lt;string&gt;Alphabeat&lt;/string&gt;
          &lt;key&gt;description&lt;/key&gt;
          &lt;string&gt;Long description.&lt;/string&gt;
          &lt;key&gt;scene&lt;/key&gt;
          &lt;string&gt;Store Scene&lt;/string&gt;
          &lt;key&gt;date&lt;/key&gt;
          &lt;date&gt;2011-02-04T20:09:40Z&lt;/date&gt;
          &lt;key&gt;hasDate&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;weekDay&lt;/key&gt;
          &lt;string&gt;Onsdag&lt;/string&gt;
          &lt;key&gt;youtubeVideo&lt;/key&gt;
          &lt;string&gt;http://www.youtube.com/watch?v=dB01PTZNpBc&lt;/string&gt;
      &lt;/dict&gt;
      &lt;dict&gt;
          &lt;key&gt;name&lt;/key&gt;
          &lt;string&gt;Anne Linnet&lt;/string&gt;
          &lt;key&gt;description&lt;/key&gt;
          &lt;string&gt;Long description.&lt;/string&gt;
          &lt;key&gt;scene&lt;/key&gt;
          &lt;string&gt;Store Scene&lt;/string&gt;
          &lt;key&gt;date&lt;/key&gt;
          &lt;date&gt;2011-02-04T20:09:40Z&lt;/date&gt;
          &lt;key&gt;hasDate&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;weekDay&lt;/key&gt;
          &lt;string&gt;Onsdag&lt;/string&gt;
          &lt;key&gt;youtubeVideo&lt;/key&gt;
          &lt;string&gt;http://www.youtube.com/watch?v=jWMSqS7fL9k&lt;/string&gt;
      &lt;/dict&gt;
  &lt;/array&gt;
  </code></pre>