title: How to get indexPath.row of tableView which is currently being displayed?
body: <p>I have a tableView with many values. </p>
  
  <p>I want to get the first <code>indexPath.row</code> value of the table which is being displayed currently.</p>
  
  <p>How can I do that?</p>
  
  <p>I get Following Error while implementing krishnabhadra's answer:</p>
  
  <p><strong>Line at which the error comes is:</strong> </p>
  
  <pre><code>[self.table scrollToRowAtIndexPath:indexVis atScrollPosition:UITableViewScrollPositionTop animated:YES];
  </code></pre>
  
  <p><strong>ERROR:</strong></p>
  
  <pre><code>Assertion failure in -[NSIndexPath row], /SourceCache/UIKit_Sim/UIKit-1447.6.4/UITableViewSupport.m:2018
  2011-04-01 11:57:25.458 GlossaryPro[1525:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid index path for use with UITableView.  Index paths passed to table view must contain exactly two indices specifying the section and row.  Please use the category on NSIndexPath in UITableView.h if possible.'
  </code></pre>
  
  <p>What could be wrong?</p>