让TableView滚动到想要的行

2016-06-02  本文已影响60人  AlexLi_
#indexPathForRow 到第几行  #inSection 到第几个section
NSIndexPath *lastIndex = [NSIndexPath
               indexPathForRow:1 
               inSection:0];
[self.tableView 
  scrollToRowAtIndexPath:lastIndex 
  atScrollPosition:UITableViewScrollPositionBottom 
  animated:YES];
上一篇 下一篇

猜你喜欢

热点阅读