Open China-meng opened 7 years ago
@China-meng try import ESPullToRefresh
@China-meng there is es_ prefix, not dot syntax
@China-meng Add this code to your viewDidLoad() method
self.table.es.addPullToRefresh { [weak self] in self?.table.reloadData() /// Stop refresh when your job finished, it will reset refresh footer if completion is true self?.table.es.stopPullToRefresh(ignoreDate: false) /// Set ignore footer or not self?.table.es.stopPullToRefresh(ignoreDate: false, ignoreFooter: false) }
pod "ESPullToRefresh" 之后 控制器出现Value of type 'UICollectionView' has no member 'es'![image](https://user-images.githubusercontent.com/25093258/28768735-5c92158c-760b-11e7-8383-30f96321b102.png)