hhr

HHRefreshManager

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

Showing:

Popularity

Downloads/wk

0

GitHub Stars

94

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100