Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (34 sloc) 1.264 kB
//
// AllAroundPullView.h
//
// Created by r_plus on 9/2/12
// Copyright (c) 2012 r_plus All rights reserved.
//
// https://github.com/r-plus/AllAroundPullView
//
// based on twobitlabs modified version of PullToRefreshView by Grant Paul (chpwn)
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
typedef enum {
AllAroundPullViewStateNormal = 0,
AllAroundPullViewStateReady,
AllAroundPullViewStateLoading,
AllAroundPullViewStateNone
} AllAroundPullViewState;
typedef enum {
AllAroundPullViewPositionTop = 1 << 0,
AllAroundPullViewPositionBottom = 1 << 1,
AllAroundPullViewPositionLeft = 1 << 2,
AllAroundPullViewPositionRight = 1 << 3
} AllAroundPullViewPosition;
@interface AllAroundPullView : UIView
@property (nonatomic, assign) NSTimeInterval timeout;
@property (nonatomic, assign) CGFloat threshold;
@property (nonatomic, strong) UIActivityIndicatorView *activityView;
@property (nonatomic, readonly) BOOL isSideView;
@property (nonatomic, readonly) AllAroundPullViewPosition position;
- (void)finishedLoading;
- (void)hideAllAroundPullViewIfNeed:(BOOL)disable;
- (id)initWithScrollView:(UIScrollView *)scroll position:(AllAroundPullViewPosition)position action:(void (^)(AllAroundPullView *view))actionHandler;
@end
Jump to Line
Something went wrong with that request. Please try again.