我将通过拖到表格底部来实现UITableView
以显示较旧的项目,如何在当前列表的底部显示刷新图标UIActivityIndicator
?
非常感谢!
最佳答案
您可以使用开源库SVPullToRefresh,该库具有易于使用的方法:
[tableView addInfiniteScrollingWithActionHandler:^{
// append data to data source, insert new cells at the end of table view
// call [tableView.infiniteScrollingView stopAnimating] when done
}];
调用
actionHandler
块时,将您的代码放入较早的内容。
关于ios - 将表格的刷新控制置于底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35520929/