title: Manually call didSelectRowatIndexPath
body: <p>I am trying to call didSelectRowAtIndexPath programmatically but am having trouble.  </p>
  
  <pre><code>[self tableView:playListTbl didSelectRowAtIndexPath:indexPath];
  </code></pre>
  
  <p>Gives me the following error:</p>
  
  <blockquote>
    <p>Use of undeclared identifier 'indexPath'; did you mean 'NSIndexPath'?</p>
  </blockquote>
  
  <p>Can anybody help me out?  Thanks!</p>
  
  <p>EDIT:  From the responses below it sounds like im going about this the wrong way.  How can I get the text of the selected items when a button is pressed (can be multiple selections)?  I need to do this in a function dedicated to the button press.</p>