以下帖子是否仍然是检测UITableView实例何时(在Swift中)滚动到底部的公认方法,还是自那以后它被更改(如:改进)了?
Problem detecting if UITableView has scrolled to the bottom
非常感谢.
以下帖子是否仍然是检测UITableView实例何时(在Swift中)滚动到底部的公认方法,还是自那以后它被更改(如:改进)了?
Problem detecting if UITableView has scrolled to the bottom
非常感谢.
Swift 3
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.row + 1 == yourArray.count {
print("do something")
}
}