TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
AllAroundPullView allow you to 4 direction Pull-To-Refresh feature.
AllAroundPullView.h/m and arrow image
to your project.#import "AllAroundPullView.h"
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];
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;
maintained in noARC
and delegate
branch.
See LICENSE file.