This is a simple pretty refresh control that is easy to use.这是一个漂亮简易刷新控件,使用简单。
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
HHRefreshDemo.xcodeproj
HHRefreshDemo
HHRefreshManager
.gitignore
HHRefreshManager.podspec
LICENSE
README.md

README.md

HHRefreshManager

This is a simple pretty refresh control that is easy to use.这是一个漂亮简易刷新控件,使用简单。

简书地址

效果图如下:

refreshStar.gif refreshSemiPoint.gif

refreshSemiCircle.gif refreshCircle.gif

refreshNormal.gif

使用方法

1、手动下载代码,导入头文件HHRefreshManager.h

/**
 实例化方法, 内部KVO监听tableView的contentOffset
 
 @param delegate 代理对象
 @param scrollView 需要监听的对象
 @return 当前类的实例
 */
+ (instancetype)refreshWithDelegate:(id<HHRefreshManagerDelegate>)delegate scrollView:(UIScrollView *)scrollView;

//实例化刷新对象
self.refreshManager = [HHRefreshManager refreshWithDelegate:self scrollView:self.refreshTableView type:self.animationType];

//实现协议方法 `HHRefreshManagerDelegate.h`
- (void)beginRefreshWithType:(HHRefreshType)type;

2、cocoapod下载

target 'MyApp' do
  pod 'HHRefreshManager', '~> 1.1.1'
end