美文网首页
下拉刷新,刷新后停留原位置

下拉刷新,刷新后停留原位置

作者: 放开那个小卤蛋 | 来源:发表于2016-02-24 17:05 被阅读207次

下拉刷新,刷新后停留原位置

NSInteger oldCnt = [self.listMutArr count];

...代码

NSInteger newCnt  = [self.tempMutArr count];

[self.tableView reloadData];

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:newCnt - oldCnt inSection:0];

[self.vipTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:NO];

相关文章

网友评论

      本文标题:下拉刷新,刷新后停留原位置

      本文链接:https://www.haomeiwen.com/subject/sodikttx.html