Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Pull-To-Refresh for 4 direction.

branch: master

add podspec file

latest commit 9c25969399
r-plus authored
Octocat-spinner-32 AllAroundPullViewDemo
Octocat-spinner-32 .gitignore initial commit September 08, 2012
Octocat-spinner-32 .travis.yml Add CI files February 15, 2014
Octocat-spinner-32 AllAroundPullView.h Refactoring February 15, 2014
Octocat-spinner-32 AllAroundPullView.m Refactoring February 15, 2014
Octocat-spinner-32 AllAroundPullView.podspec add podspec file February 16, 2014
Octocat-spinner-32 LICENSE.txt initial commit September 08, 2012
Octocat-spinner-32 Makefile Add CI files February 15, 2014
Octocat-spinner-32 README.md try February 15, 2014
Octocat-spinner-32 arrow.png initial commit September 08, 2012
Octocat-spinner-32 arrow@2x.png initial commit September 08, 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.

Something went wrong with that request. Please try again.