스위프트 코드 기반에서 SVPullToRefresh + SVInfiniteScrolling을 사용하고 있습니다. 어떻게SVPullToRefresh + SVInfiniteScrolling in 스위프트 코드
[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
})