https://blog.csdn.net/zww1984774346/article/details/50699253
//***************方法一***************// //回滚到表的最顶端 [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];
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zww1984774346/article/details/50699253
网友评论