Latest 1.0.0
Homepage https://github.com/waterflowseast/EHLoaders
License MIT
Platforms ios 7.0
Authors

[![CI Status](http://img.shields.io/travis/Eric Huang/EHLoaders.svg?style=flat)](https://travis-ci.org/Eric Huang/EHLoaders)
Version
License
Platform

Summary

pull to refresh & lift to load more.

Usage

YourCustomRefreshLoaderView *refreshView = [[YourCustomRefreshLoaderView alloc] init];
self.scrollView.eh_header = [EHHeadLoader headerWithLoaderView:refreshView target:self action:@selector(refresh:);

YourCustomLoadMoreLoaderView *loadMoreView = [[YourCustomLoadMoreLoaderView alloc] init];
self.scrollView.eh_footer = [EHFootLoader footerWithLoaderView:loadMoreView target:self action:@selector(loadMore:);

those custom views’ class should be subclass of EHLoaderView, and you should override methods in EHLoadersStateReactionDelegate to customize your behaviors.

@protocol EHLoadersStateReactionDelegate <NSObject>

@required
- (void)reactOnIdleStateForThresholdPercentage:(CGFloat)percentage;
- (void)reactOnTriggeredStateForThresholdPercentage:(CGFloat)percentage;
- (void)reactOnStateChangedFrom:(EHLoadersState)fromState to:(EHLoadersState)toState;

@optional
- (void)reactOnNoMoreDataFlagSetTo:(BOOL)hasNoMoreData;

@end

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 7.0+

Installation

EHLoaders is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "EHLoaders"

Author

Eric Huang, [email protected]

License

EHLoaders is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "EHLoaders",
    "version": "1.0.0",
    "summary": "pull to refresh & lift to load more.",
    "homepage": "https://github.com/waterflowseast/EHLoaders",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Eric Huang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/waterflowseast/EHLoaders.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "EHLoaders/Classes/**/*"
}

Pin It on Pinterest

Share This