eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.82k stars 252 forks source link

pod "ESPullToRefresh" 之后出现Value of type 'UICollectionView' has no member 'es' #87

Open China-meng opened 7 years ago

China-meng commented 7 years ago

pod "ESPullToRefresh" 之后 控制器出现Value of type 'UICollectionView' has no member 'es' image

xiaozao2008 commented 7 years ago

@China-meng try import ESPullToRefresh

piv199 commented 6 years ago

@China-meng there is es_ prefix, not dot syntax

DIMEGLIOM commented 6 years ago

@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) }