self.tableView.setContentOffset(CGPoint.init(x: 0, y: 0), animated: true) 转载于:https://my.oschina.net/wayzhu/blog/1927668