iOS 怎么让tableView滑动最底端

来源:互联网 发布:海拉淘宝店 编辑:程序博客网 时间:2024/05/01 15:35
[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的最底端 

0 0
原创粉丝点击