让TableView滚动到想要的行
2016-06-02 本文已影响60人
AlexLi_
#indexPathForRow 到第几行 #inSection 到第几个section
NSIndexPath *lastIndex = [NSIndexPath
indexPathForRow:1
inSection:0];
[self.tableView
scrollToRowAtIndexPath:lastIndex
atScrollPosition:UITableViewScrollPositionBottom
animated:YES];