UITableView返回到顶部

UITableView继承了UIScrollView所以可以使用UIScrollView的方法,设置显示内容的偏移量

[self.tableView setContentOffset:CGPointMake(0, 0) animated:YES];

猜你喜欢

转载自sdlqhjk.iteye.com/blog/1767551