在swift代码库上使用SVPullToRefresh + SVInfiniteScrolling。我怎样写SVPullToRefresh + SVInfiniteScrolling in Swift code
[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];
在SWIFT代码
?