Skip to content

easier and convenient refresh control util for SVPullToRefresh

License

Notifications You must be signed in to change notification settings

litt1e-p/LPRefreshControl

Repository files navigation

LPRefreshControl

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

Release Notes

  • 1.0.0

License

MIT

About

easier and convenient refresh control util for SVPullToRefresh

Resources

License

Stars

Watchers

Forks

Packages

No packages published