美文网首页
tableview 滚动到指定位置

tableview 滚动到指定位置

作者: Mr__San | 来源:发表于2017-09-06 18:04 被阅读0次

// 滚动到指定位置

[self.tableView reloadData];

NSIndexPath* indexPath = [NSIndexPath indexPathForRow:0 inSection:2];

[self.tableView scrollToRowAtIndexPath: indexPath atScrollPosition:UITableViewScrollPositionTop animated: YES];

相关文章

网友评论

      本文标题:tableview 滚动到指定位置

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