Pull-To-Refresh for 4 direction.
Objective-C
Latest commit 9c25969 Feb 16, 2014 @r-plus add podspec file
Permalink
Failed to load latest commit information.
AllAroundPullViewDemo Refactoring Feb 15, 2014
.gitignore initial commit Sep 8, 2012
.travis.yml Add CI files Feb 15, 2014
AllAroundPullView.h Refactoring Feb 15, 2014
AllAroundPullView.m Refactoring Feb 15, 2014
AllAroundPullView.podspec add podspec file Feb 15, 2014
LICENSE.txt initial commit Sep 8, 2012
Makefile Add CI files Feb 15, 2014
README.md try Feb 15, 2014
arrow.png initial commit Sep 8, 2012
arrow@2x.png initial commit Sep 8, 2012

README.md

AllAroundPullView build

AllAroundPullView allow you to 4 direction Pull-To-Refresh feature.

Installation

  • Import AllAroundPullView.h/m and arrow image to your project.
  • Add QuartzCore framework to your project.
  • #import "AllAroundPullView.h"

Usage

AllAroundPullView *pull = [[AllAroundPullView alloc] initWithScrollView:scrollView
                                                               position:AllAroundPullViewPositionTop
                                                                 action:^(AllAroundPullView *view){
  // do anything
  [view performSelector:@selector(finishedLoading) withObject:nil afterDelay:0.0f];
}];
[scrollView addSubview:pull];
[pull release];

Customization

You can customize timeout, threshold, activityView from property.

@property (nonatomic, assign) NSTimeInterval timeout; // default is nothing.
@property (nonatomic, assign) CGFloat threshold; // default is 60.0f
// default is UIActivityIndicatorViewStyleWhiteLarge
@property (nonatomic, retain) UIActivityIndicatorView *activityView; 

So, like this.

pull.timout = 10.0f;
pull.threshold = 120.0f;
pull.activityView.activityIndicatorViewStyle = UIActivityIndicatorViewStyleGray;

No-ARC and delegate design pattern

maintained in noARC and delegate branch.

License

See LICENSE file.