美文网首页
让TableView滚动到想要的行

让TableView滚动到想要的行

作者: AlexLi_ | 来源:发表于2016-06-02 21:43 被阅读60次
#indexPathForRow 到第几行  #inSection 到第几个section
NSIndexPath *lastIndex = [NSIndexPath
               indexPathForRow:1 
               inSection:0];
[self.tableView 
  scrollToRowAtIndexPath:lastIndex 
  atScrollPosition:UITableViewScrollPositionBottom 
  animated:YES];

相关文章

网友评论

      本文标题:让TableView滚动到想要的行

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