Give Pinterest Like PullToRefresh to any UIScrollView with just simple code
UzysCircularProgressPullToRefresh features:
- It's very simple to use.
- Support iOS7.
- Support only ARC
- Support CocoaPods.
- Support Orientation change.
Copy over the files library 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, 40)];
[self.tableView.pullToRefreshView setBorderWidth:4];
[self.tableView.pullToRefreshView setBorderColor:[UIColor colorWithRed:75/255.0 green:131/255.0 blue:188/255.0 alpha:1.0]];
[self.tableView.pullToRefreshView setImageIcon:[UIImage imageNamed:@"thunderbird"]];
[self.tableView.pullToRefreshView setProgressThreshold:25];
[self.tableView addTopInsetInPortrait:64 TopInsetInLandscape:52];
// iOS 7 LandScape Navigationbar size 52 , Portrait Navigationbar size 64
must call these customization methods after calling 'addPullToRefreshActionHandler'
- See LICENSE.