通用的下拉刷新。
#import <HaidoraRefresh.h>
//下拉刷新
//添加下拉刷新回调
[self.scrollView addPullToRefreshWithActionHandler:nil];
//添加下拉刷新并设置自定义动画
[self.scrollView addPullToRefreshWithActionHandler:nil animator:nil];
//适用于collectionView,添加代码
self.collectionView.alwaysBounceVertical = YES;
更多自定义AnimatorHaidoraRefreshExtension
HaidoraRefresh is available through HaidoraPods. To install it, simply add the following line to your Podfile:
pod "HaidoraRefresh"
mrdaios, mrdaios@gmail.com
HaidoraRefresh is available under the MIT license. See the LICENSE file for more info.