Skip to content
A simple iPhone TableViewController for adding pull-to-refresh functionality.
Objective-C
Pull request Compare This branch is 7 commits ahead of marksuman:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Classes
PullToRefresh.xcodeproj
.gitignore
LICENSE
PullToRefresh-Info.plist
PullToRefresh_Prefix.pch
README.markdown
arrow.png
main.m

README.markdown

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

  1. Copy the files, PullRefreshTableViewController.h, PullRefreshTableViewController.m, and 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!

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)
Something went wrong with that request. Please try again.