Latest 1.0.0
Homepage https://github.com/litt1e-p/LPRefreshControl
License MIT
Platforms ios 7.0, requires ARC
Dependencies SVPullToRefresh
Frameworks Foundation, UIKit
Authors

easier and convenient refresh control util for SVPullToRefresh.

Installation

pod 'LPRefreshControl', '~> 1.0.0'

Usage

/** add scrollView top pullToRefresh  */
[[LPRefreshControl sharedInstance] addRefreshInView:self.tableView atPosition:RefreshPositionTop withHandler:^{
    //refresh handler
}];
/** add scrollView bottom infiniteRefresh  */
[[LPRefreshControl sharedInstance] addRefreshInView:self.tableView atPosition:RefreshPositionBottom withHandler:^{
    //infiniteRefresh handler
}];
/** add scrollView top pullToRefresh & bottom infiniteRefresh  */
[[LPRefreshControl sharedInstance] addRefreshInView:self.tableView withTopHandler:^{
    //refresh handler
} andBottomHandler:^{
    //infiniteRefresh handler
}];
/** trigger top pullToRefresh or bottom infiniteRefresh */
[[LPRefreshControl sharedInstance] triggerRefreshInView:self.tableView atPosition:RefreshPositionTop];
[[LPRefreshControl sharedInstance] triggerRefreshInView:self.tableView atPosition:RefreshPositionBottom];

Screenshot

LPRefreshControl

Release Notes

  • 1.0.0

License

MIT

Latest podspec

{
    "name": "LPRefreshControl",
    "version": "1.0.0",
    "summary": "refresh control util for SVPullToRefresh.",
    "description": "refresh control util for SVPullToRefresh easily and conveniently.",
    "homepage": "https://github.com/litt1e-p/LPRefreshControl",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "litt1e-p": "[email protected]"
    },
    "source": {
        "git": "https://github.com/litt1e-p/LPRefreshControl.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "LPRefreshControl/*",
    "dependencies": {
        "SVPullToRefresh": [
            "~> 0.4.1"
        ]
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This