AAPullToRefresh 1.0.2

AAPullToRefresh 1.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Unclaimed.


Downloads

Total13,628
Week35
Month219

Installs

Apps208
Apps WeekApps This Week 4
Test Targets10
Watch Apps2
powered by Segment

GitHub

Stars149
Watchers9
Forks41
Issues3
Contributors3
Pull Requests3

Code

Files2
LOCLines of Code 424


  • By
  • r-plus

All around pull to refresh library.

DemoGif

Requirement

  • ARC.
  • iOS 6 or higher(tested on iOS 6 and 7).

Install

Manually

  1. Copy AAPullToRefresh directory to your project.

Usage

#import "AAPullToRefresh.h"
...
AAPullToRefresh *tv = [self.scrollView addPullToRefreshPosition:AAPullToRefreshPositionTop ActionHandler:^(AAPullToRefresh *v){
    // do something...
    // then must call stopIndicatorAnimation method.
    [v performSelector:@selector(stopIndicatorAnimation) withObject:nil afterDelay:1.0f];
}];

Customization

Property

You can customize below properties.

tv.imageIcon = [UIImage imageNamed:@"launchpad"];
tv.borderColor = [UIColor whiteColor];
tv.borderWidth = 3.0f;
tv.threshold = 60.0f;
tv.showPullToRefresh = NO; // also remove KVO observer if set to NO.

Method

- (void)manuallyTriggered;    // Manually trigger the block.
- (void)setSize:(CGSize)size; // Zoom in/out size.

LICENSE

MIT