Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ross refresh and fixes #946

Merged
merged 10 commits into from
Apr 17, 2015
18 changes: 18 additions & 0 deletions Common/UI/MITPullToRefresh/MITPullToRefresh.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, MITPullToRefreshState) {
MITPullToRefreshStateStopped = 0,
MITPullToRefreshStateTriggered,
MITPullToRefreshStateLoading
};

@interface UIScrollView (MITPullToRefresh)

- (void)mit_addPullToRefreshWithActionHandler:(void (^)(void))actionHandler;
- (void)mit_triggerPullToRefresh;
- (void)mit_stopAnimating;

@property (nonatomic, assign) BOOL mit_showsPullToRefresh;
@property (nonatomic, readonly) MITPullToRefreshState mit_pullToRefreshState;

@end
Loading