Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leah/PullToRefresh
A simple iPhone TableViewController for adding pull-to-refresh functionality.
https://github.com/leah/PullToRefresh
Last synced: 3 months ago
JSON representation
A simple iPhone TableViewController for adding pull-to-refresh functionality.
- Host: GitHub
- URL: https://github.com/leah/PullToRefresh
- Owner: leah
- License: mit
- Created: 2010-07-25T17:44:33.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-10-19T11:54:28.000Z (about 2 years ago)
- Last Synced: 2024-07-19T23:55:14.839Z (4 months ago)
- Language: Objective-C
- Homepage: http://blog.leahculver.com/2010/07/iphone-pull-to-refresh.html
- Size: 346 KB
- Stars: 1,909
- Watchers: 79
- Forks: 253
- Open Issues: 22
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
- awesome - PullToRefresh - A simple iPhone TableViewController for adding pull-to-refresh functionality. (etc)
- awesome - PullToRefresh - A simple iPhone TableViewController for adding pull-to-refresh functionality. (etc)
README
**Attention:** As of iOS 6.0, there is a [UIRefreshControl](https://developer.apple.com/library/ios/documentation/uikit/reference/UIRefreshControl_class/Reference/Reference.html) object that makes adding pull-to-refresh functionality super easy. If you only need to support iOS 6.0 and later, I'd recommend using [UIRefreshControl](https://developer.apple.com/library/ios/documentation/uikit/reference/UIRefreshControl_class/Reference/Reference.html) instead.
### PullToRefresh
A simple iPhone TableViewController for adding pull-to-refresh functionality.
![](http://s3.amazonaws.com/leah.baconfile.com/blog/refresh-small-1.png)
![](http://s3.amazonaws.com/leah.baconfile.com/blog/refresh-small-2.png)
![](http://s3.amazonaws.com/leah.baconfile.com/blog/refresh-small-3.png)
![](http://s3.amazonaws.com/leah.baconfile.com/blog/refresh-small-4.png)Inspired by [Tweetie 2](http://www.atebits.com/tweetie-iphone/), [Oliver Drobnik's blog post](http://www.drobnik.com/touch/2009/12/how-to-make-a-pull-to-reload-tableview-just-like-tweetie-2/)
and [EGOTableViewPullRefresh](http://github.com/enormego/EGOTableViewPullRefresh).How to install
1. Copy the files, [PullRefreshTableViewController.h](https://raw.github.com/leah/PullToRefresh/master/Classes/PullRefreshTableViewController.h),
[PullRefreshTableViewController.m](https://raw.github.com/leah/PullToRefresh/master/Classes/PullRefreshTableViewController.m),
and [arrow.png](http://github.com/leah/PullToRefresh/raw/master/arrow.png) into your project.2. Link against the QuartzCore framework (used for rotating the arrow image).
3. Create a TableViewController that is a subclass of PullRefreshTableViewController.
4. Customize by adding your own refresh() method.
Enjoy!