horizontal PullRefresh
You can use CocoaPods install to you project.
or
drag horizontalPullRefresh folder to you project ,and add the QuartzCore.framework.
just a line code...
- (void)viewDidLoad
{
[super viewDidLoad];
__block id blockself = self;
[scrollview setContentSize:CGSizeMake(scrollview.bounds.size.width+1, scrollview.bounds.size.height)];
[scrollview addHPullRefresh:^{
[blockself performSelector:@selector(stopRefresh:) withObject:nil afterDelay:3.0];
}];
[scrollview startLoading];
}
-(void)stopRefresh:(id)sender{
[scrollview stopLoading];
}
QuartzCore.framework