Give Pinterest Like PullToRefresh to any UIScrollView with just simple code
UzysSlideMenu features:
- It's very simple to use.
- Support iOS7.
- Support only ARC
- Support CocoaPods. (to be)
Copy over the files libary folder to your project folder
###Import header.
#import "UIScrollView+UZYSCircularProgressPullToRefresh.h"
adding PullToRefreshActionHandler
-(void)viewWillAppear:(BOOL)animated
{
__weak typeof(self) weakSelf = self;
[_tableView addPullToRefreshActionHandler:^
{
[weakSelf insertRowAtTop];
}];
}
[_tableView triggerPullToRefresh];
[_tableView stopRefreshAnimation];
[self.tableView.pullToRefreshView setSize:CGSizeMake(40.0, 40.0)];
[self.tableView.pullToRefreshView setBorderWidth:4.0];
[self.tableView.pullToRefreshView setBorderColor:[UIColor colorWithRed:75.0 / 255.0 green:131.0 / 255.0 blue:188.0 / 255.0 alpha:1.0]];
[self.tableView.pullToRefreshView setImageIcon:[UIImage imageNamed:@"thunderbird"]];
#define PullToRefreshThreshold 80.0
You have to remove when your scroll view is about to get deallocated
[self.tableView removePullToRefreshView];
- See LICENSE.