UI Component like ActionBar-PullToRefresh of Android for iOS.
- iOS6.0 or later
- ARC
STZPullToRefresh is available through CocoaPods, to install it simply add the following line to your Podfile:
pod "STZPullToRefresh"
#import <STZPullToRefresh/STZPullToRefresh.h>
// Create refresh view
STZPullToRefreshView *refreshView = [[STZPullToRefreshView alloc] initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, 3)];
[self.view addSubview:refreshView];
// Setup PullToRefresh
self.pullToRefresh = [[STZPullToRefresh alloc] initWithTableView:self.tableView
refreshView:refreshView
tableViewDelegate:self];
self.tableView.delegate = self.pullToRefresh;
self.pullToRefresh.delegate = self; // STZPullToRefreshDelegate
see Example directory project.
Kenji Abe, kenji@star-zero.com
STZPullToRefresh is available under the MIT license. See the LICENSE file for more info.