https://github.com/coderyi/yirefresh
a simple way to use pull-to-refresh.下拉刷新,大道至简,最简单的网络刷新控件
https://github.com/coderyi/yirefresh
Last synced: over 1 year ago
JSON representation
a simple way to use pull-to-refresh.下拉刷新,大道至简,最简单的网络刷新控件
- Host: GitHub
- URL: https://github.com/coderyi/yirefresh
- Owner: coderyi
- License: mit
- Created: 2015-03-06T16:26:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T06:50:46.000Z (almost 7 years ago)
- Last Synced: 2025-04-02T08:10:04.090Z (over 1 year ago)
- Language: Objective-C
- Homepage: https://github.com/coderyi/blog
- Size: 342 KB
- Stars: 251
- Watchers: 12
- Forks: 42
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# YiRefresh
[](http://cocoadocs.org/docsets/YiRefresh/)
[](http://cocoadocs.org/docsets/YiRefresh/)
[](https://opensource.org/licenses/MIT)
[中文README](https://github.com/coderyi/YiRefresh/blob/master/README_Chinese.md)
a simple way to use pull-to-refresh.
implement by KVO,support UITableView,UICollectionView,UIWebView.
YiRefresh Support iOS7+,horizontal and vertical screen,iPhone and iPad.
#### Podfile
```ruby
platform :ios, '7.0'
pod "YiRefresh", "~> 0.9.5"
```
- [Who Uses YiRefresh](https://github.com/coderyi/YiRefresh/wiki/Who-Uses-YiRefresh)
header drop down to refresh
refreshHeader=[[YiRefreshHeader alloc] init];
refreshHeader.scrollView=tableView;
[refreshHeader header];
typeof(refreshHeader) __weak weakRefreshHeader = refreshHeader;
refreshHeader.beginRefreshingBlock=^(){
typeof(weakRefreshHeader) __strong strongRefreshHeader = weakRefreshHeader;
[strongRefreshHeader endRefreshing];
};
[refreshHeader beginRefreshing];
footer pull up to refresh
refreshFooter=[[YiRefreshFooter alloc] init];
refreshFooter.scrollView=tableView;
[refreshFooter footer];
typeof(refreshFooter) __weak weakRefreshFooter = refreshFooter;
refreshFooter.beginRefreshingBlock=^(){
typeof(weakRefreshFooter) __strong strongRefreshFooter = weakRefreshFooter;
[strongRefreshFooter endRefreshing];
};




copyright (c) 2015 coderyi.all rights reserved.