我在 swift 代码库上使用 SVPullToRefresh + SVInfiniteScrolling。怎么写
[tableView addPullToRefreshWithActionHandler:^{
// prepend data to dataSource, insert cells at top of table view
// call [tableView.pullToRefreshView stopAnimating] when done
}];
和
[tableView addPullToRefreshWithActionHandler:^{
// prepend data to dataSource, insert cells at top of table view
// call [tableView.pullToRefreshView stopAnimating] when done
} position:SVPullToRefreshPositionBottom];
在快速代码中?
最佳答案
尝试类似的东西:
self.tableView.addPullToRefreshWithActionHandler({() -> Void in
//code
})
关于ios - Swift 代码中的 SVPullToRefresh + SVInfiniteScrolling,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27100541/