I have a tableview that always shows 3 cells for each page.
I need to know if the selected cell is the first, the second or the third of the page.
I'm sure there's a formula to calculate that, but I'm not able to find it.
Edit: let's see if I can make myself clearer.
Imagine to have an array of 8 objects to show in a tableview. Because the tableview is paged, the first page will show the indexes 0, 1, 2 of the array, the second page will show the indexes 3, 4, 5, and the last page will show the indexes 6 and 7.
Let's imagine we're on the second page (indexes 3, 4 and 5 shown) and I select the second cell (index 4).
I need to know that the user has selected the second cell, and not the indexPath.row that in this case is 4.