title: How do I get the last indexPath of a uicollectionview (NOT TABLE VIEW) ? Need it do server side paging
body: <p>I have looked for ways of getting the last <code>indexPath</code> of a <code>UICollectionView</code>, although below code works for a <code>UITableView</code> (having one section):</p>
  
  <pre><code>[NSIndexPath indexPathForRow:[yourArray count]-1 inSection:0] 
  </code></pre>
  
  <p>but not been able to achieve the same thing for a <code>UICollectionView</code>.</p>