title: iOS - How can I get the IndexPath of the last item in a tableview?
body: <p>I would like to automatically scroll to the end of a table view.</p>
  
  <pre><code>[tableView scrollToRowAtIndexPath:lastIndexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES];
  </code></pre>
  
  <p>Given that I know how many item are in the tableview using:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  </code></pre>
  
  <p>How can I get the IndexPath * to the last item in this tableView? This is needed so that I can provide it as an argument to scrollToRowAtIndexPath:atScrollPosition:animated</p>
  
  <p>Thanks!</p>