我想使用UITableView
在UIRefreshControl
底部实现拉动刷新效果?
有什么想法吗?
答案 0 :(得分:1)
无法将UIRefreshControll
置于UITableView
的底部,其方式类似于将其置于顶部。但无论如何,您可以将所有内容放在桌面视图的背景视图中。
但我喜欢的解决方案是在用户滚动到表格视图的最底部时下载其他项目。我通过UITableViewControllerDelegate
方法处理它:
func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
if indexPath.row == self.items.count - 1 {
// Download more items
}
}
答案 1 :(得分:0)
这些是我通常做的两件事: