Thursday, May 3, 2012

Open Source iOS Component That Enables Pull To Refresh With One Line Of Code

Open Source iOS Component That Enables Pull To Refresh With One Line Of Code:
Pull-to-refresh has become a commonly used paradigm on touch screen devices and there are a number of open source implementations that allow you to add the pull to refresh capability to a UITableView.
Today I came across a new library that allows you to add pull to refresh to an UIScrollView subclass , and with just one line of code, and no delegates or subclassing UITableViewController.  You can also easily customize the look of the text, arrow, and activity indicator.
The library is SVPullToRefresh from Sam Vermette who also created the previously mentioned in-line browser view, and highly customizable segmented control components.
You can find SVPullToRefresh on Github here.
A good alternative if you want both simplicity and don’t want to use a component that subclasses UITableViewController.

©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.
DeliciousTwitterFacebookLinkedInEmail

No comments: