作者:潇湘V烟雨 | 来源:互联网 | 2023-05-19 04:57
[tableViewscrollToNearestSelectedRowAtScrollPosition:UITableViewScrollPositionBottomanimated:YE
[tableView scrollToNearestSelectedRowAtScrollPosition:UITableViewScrollPositionBottom animated:YES];
这个是选择哪一行的cell,让该行的cell滑到tableView的最底端
NSIndexPath *indexPath = [NSIndexPath indexPathForItem:13 inSection:0];
[tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES];
这个是指定哪一行的cell,让该行cell滑到tableView的最底端