TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Philipe Fatio.
YAPTR™: Yet another pull-to-refresh
contentInset
on the scroll view which I need. Heck not even Apple's own █████████ respects that property (but then again, it's still β).UIControl
. When triggered it sends a UIControlEventValueChanged
event to targets.Adding a refresh control to a scroll view:
PHFRefreshControl *refreshControl = [PHFRefreshControl new];
[refreshControl setTintColor:tintColor];
[refreshControl addTarget:dataController
action:@selector(reload)
forControlEvents:UIControlEventValueChanged];
[scrollView setRefreshControl:refreshControl];
Triggering a refresh programmatically:
[[scrollView refreshControl] beginRefresh];
work();
[[scrollView refreshControl] endRefresh];
PHFDelegateChain
is released under the MIT license.
Philipe Fatio (@fphilipe)
The arrow drawing code was adapted from Sam Vermette's SVPullToRefresh.