UITableView, UICollectionView都继承自UIScrollView,所以可以使用UIScrollView的方法,设置显示内容的偏移量
[self.tableView setContentOffset:CGPointMake(0, 0) animated:YES];
原文链接http://wpdome.sinaapp.com/?p=189
时间: 2024-08-03 03:27:15
UITableView, UICollectionView都继承自UIScrollView,所以可以使用UIScrollView的方法,设置显示内容的偏移量
[self.tableView setContentOffset:CGPointMake(0, 0) animated:YES];
原文链接http://wpdome.sinaapp.com/?p=189