-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
979 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// SVPullToRefresh.h | ||
// SVPullToRefreshDemo | ||
// | ||
// Created by Sam Vermette on 23.04.12. | ||
// Copyright (c) 2012 samvermette.com. All rights reserved. | ||
// | ||
// https://github.com/samvermette/SVPullToRefresh | ||
// | ||
|
||
// this header file is provided for backwards compatibility and will be removed in the future | ||
// here's how you should import SVPullToRefresh now: | ||
|
||
#import "UIScrollView+SVPullToRefresh.h" | ||
#import "UIScrollView+SVInfiniteScrolling.h" |
44 changes: 44 additions & 0 deletions
44
klubitus/SVPullToRefresh/UIScrollView+SVInfiniteScrolling.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// UIScrollView+SVInfiniteScrolling.h | ||
// | ||
// Created by Sam Vermette on 23.04.12. | ||
// Copyright (c) 2012 samvermette.com. All rights reserved. | ||
// | ||
// https://github.com/samvermette/SVPullToRefresh | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@class SVInfiniteScrollingView; | ||
|
||
@interface UIScrollView (SVInfiniteScrolling) | ||
|
||
- (void)addInfiniteScrollingWithActionHandler:(void (^)(void))actionHandler; | ||
- (void)triggerInfiniteScrolling; | ||
|
||
@property (nonatomic, strong, readonly) SVInfiniteScrollingView *infiniteScrollingView; | ||
@property (nonatomic, assign) BOOL showsInfiniteScrolling; | ||
|
||
@end | ||
|
||
|
||
enum { | ||
SVInfiniteScrollingStateStopped = 0, | ||
SVInfiniteScrollingStateTriggered, | ||
SVInfiniteScrollingStateLoading, | ||
SVInfiniteScrollingStateAll = 10 | ||
}; | ||
|
||
typedef NSUInteger SVInfiniteScrollingState; | ||
|
||
@interface SVInfiniteScrollingView : UIView | ||
|
||
@property (nonatomic, readwrite) UIActivityIndicatorViewStyle activityIndicatorViewStyle; | ||
@property (nonatomic, readonly) SVInfiniteScrollingState state; | ||
|
||
- (void)setCustomView:(UIView *)view forState:(SVInfiniteScrollingState)state; | ||
|
||
- (void)startAnimating; | ||
- (void)stopAnimating; | ||
|
||
@end |
Oops, something went wrong.