UITableView,UICollectionView,UIScrollView快速返回顶部

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

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

原文链接http://wpdome.sinaapp.com/?p=189

posted on 2015-09-01 18:57  金玉游龙  阅读(474)  评论(0编辑  收藏  举报

导航