iOS UITableView回到顶部
作者:
斑驳的流年无法释怀 | 来源:发表于
2017-07-13 09:54 被阅读44次//***************方法一***************//
[self.tableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:NO];
//***************方法二***************//
[self.tableView setContentOffset:CGPointMake(0,0) animated:NO];
//***************方法三***************//
NSIndexPath* indexPat = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView scrollToRowAtIndexPath:indexPat atScrollPosition:UITableViewScrollPositionBottom animated:YES];
本文标题:iOS UITableView回到顶部
本文链接:https://www.haomeiwen.com/subject/hlqwhxtx.html
网友评论