PullToRefresh
A simple iPhone TableViewController for adding pull-to-refresh functionality and pull-to-load-more.
Inspired by Tweetie 2, Oliver Drobnik's blog post and EGOTableViewPullRefresh.
How to intall
-
Copy the files, PullRefreshTableViewController.h, PullRefreshTableViewController.m, and arrow.png into your project.
-
Link against the QuartzCore framework (used for rotating the arrow image).
-
Create a TableViewController that is a subclass of PullRefreshTableViewController.
-
Customize by adding your own refresh() method.
Enjoy!
Things to be added still:
- Add functionality to check that loadMore is below the fold
- Configuration options so that you can load each independently
- Function for callback when a tableView had rotated to update positioning/width
- Theme support for the bottom
- Correct alignment for horizontal views (centering of the text, primarily)