Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.6 KB

File metadata and controls

35 lines (22 loc) · 1.6 KB

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)