a simple question but I don\'t seem to have the right terminology to search Stackoverflow by it.
I have a UITableView with no sections, the user can scroll up and do
This is the Swift 3+ code:
override func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
let firstVisibleIndexPath = self.tableView.indexPathsForVisibleRows?[0]
print("First visible cell section=\(firstVisibleIndexPath?.section), and row=\(firstVisibleIndexPath?.row)")
}