ios – UITableView滚动到底部

ios – UITableView滚动到底部,第1张

概述我有这行代码: tableView.contentOffset = CGPointMake(0.0f, 10000000.0f); 内容大小远小于10000000.0f,但UITableView仍然不会滚动底部.我该怎么做? 滚动到tableViewCell? //for instance, you have 15 cellsNSIndexPath *indexPath = [NSIndexP 我有这行代码:
tableVIEw.contentOffset = CGPointMake(0.0f,10000000.0f);

内容大小远小于10000000.0f,但UItableVIEw仍然不会滚动到底部.我该怎么做?

解决方法 滚动到tableVIEwCell?
//for instance,you have 15 cellsNSIndexPath *indexPath = [NSIndexPath indexPathForRow:14 inSection:0];[self.tableVIEw scrollToRowAtIndexPath:indexPath                      atScrollposition:UItableVIEwScrollpositiontop                              animated:YES];
总结

以上是内存溢出为你收集整理的ios – UITableView滚动到底部全部内容,希望文章能够帮你解决ios – UITableView滚动到底部所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1098343.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存