How to programmatically have UITableView scroll to a specific section
Try this
[NSIndexPath indexPathForRow:NSNotFound inSection:section]
Swift 3.0
DispatchQueue.main.async {
let indexPath = IndexPath(item: 'item', section: 'section')
self.tableView.scrollToRow(at: indexPath, at: .top, animated: true)
}
Swift version of @black-sheep answer:
let sectionIndexPath = IndexPath(row: NSNotFound, section: section)