/HPullRefresh

horizontal PullRefresh

Primary LanguageObjective-CMIT LicenseMIT

HPullRefresh

horizontal PullRefresh

HPullRefresh

HPullRefresh

Install

You can use CocoaPods install to you project.

or

drag horizontalPullRefresh folder to you project ,and add the QuartzCore.framework.

How To Use

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];
}

Requirements

QuartzCore.framework

Contact

WeiBo

Twitter