In IOS6 I have the following code to scroll to the top of a UITableView
[tableView setContentOffset:CGPointZero animated:YES];
In IOS7 this
Swift 4 UITableViewExtension:
func scrollToTop(animated: Bool) { if numberOfSections > 0 { let topIndexPath = IndexPath(row: NSNotFound, section: 0) scrollToRow(at: topIndexPath, at: .top, animated: animated) } }