Latest 1.0.0
Homepage https://github.com/airymiao/AiryRefreshControl
License MIT
Platforms ios 7.0
Frameworks UIKit
Authors

Version
License
Platform

Usage

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

Header RefreshControl

AiryRefreshControl *headerRefreshControl = [AiryRefreshControl attachHeaderRefreshControlToScrollView:self.scrollView target:self action:@selector(loadLatest)];

You can also customise your header refresh view by adopt protocol AiryHeaderRefreshViewDataSource,then set the view to AiryRefreshControl like this:

AiryRefreshControl *headerRefreshControl = [AiryRefreshControl attachHeaderRefreshControlToScrollView:self.scrollView target:self action:@selector(loadLatest)];

UIView<AiryHeaderRefreshViewDataSource> *customHeaderRefreshView = [[AiryCustomHeaderRefreshView alloc] init];
[headerRefreshControl setHeaderRefreshView:customHeaderRefreshView];

Footer Refresh Control

AiryRefreshControl *footerRefreshControl = [AiryRefreshControl attachFooterRefreshControlToScrollView:self.scrollView target:self action:@selector(loadMore)];

Header & Footer Refresh Control

AiryRefreshControl *refreshControl = [AiryRefreshControl attachRefreshControlToScrollview:self.scrollView target:self headerRefreshAction:@selector(loadLatest) footerRefreshAction:@selector(loadMore)];

Installation

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

pod "AiryRefreshControl"

Author

[email protected]

License

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

Latest podspec

{
    "name": "AiryRefreshControl",
    "version": "1.0.0",
    "summary": "iOS pull down & pull up refresh control",
    "description": "iOS pull down & pull up refresh control that is used with UIScrollView",
    "homepage": "https://github.com/airymiao/AiryRefreshControl",
    "license": "MIT",
    "authors": {
        "airymiao": "[email protected]"
    },
    "source": {
        "git": "https://github.com/airymiao/AiryRefreshControl.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "AiryRefreshControl/Classes/**/*",
    "resource_bundles": {
        "AiryRefreshControl": [
            "AiryRefreshControl/Assets/*.png"
        ]
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This