UITableView检测最后一个单元格 [英] UITableView Detecting Last Cell

查看:99
本文介绍了UITableView检测最后一个单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检测 UITableView 何时滚动到底部以便最后一个单元格可见?

How can I detect when a UITableView has been scrolled to the bottom so that the last cell is visible?

推荐答案

在UITableViewDelegate中实现 tableView:willDisplayCell:forRowAtIndexPath:方法并检查它是否是最后一行。

Implement the tableView:willDisplayCell:forRowAtIndexPath: method in your UITableViewDelegate and check to see if it's the last row.

这篇关于UITableView检测最后一个单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆