使用这个
[weakSelf.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:NO];
在使用
[tableView setContentOffset:CGPointZero animated:YES];
或者
[tableView scrollRectToVisible:CGRectMake(0,0,1,1) animated:YES];
的时候 有时候会因为 分页 复用等原因 滑动不到最顶部
网友评论