QBRefreshControl
QBRefreshControl copied to clipboard
An abstract base class for creating a refresh control.
QBRefreshControl
QBRefreshControl is an abstract base class for creating a refresh control.
NOTES
This demo uses QBAnimationSequence as a submodule for animation control, so you should do
git submodule init
git submodule update
at first.
ScreenShot

Usage
It is very easy to create your own refresh control conforming QBRefreshControl.
- Create a subclass of QBRefreshControl.
- Override
stateChanged:method to specify the behavior for each state of the control.
In this method, you have to write aswitch()block.- QBRefreshControlStateHidden
- QBRefreshControlStatePullingDown
- QBRefreshControlStateOveredThreshold
- QBRefreshControlStateStopping
- Override
init,beginRefreshing,endRefreshingas necessary.
Example
See QBRefreshControl project for example usage.
License
QBRefreshControl is released under the MIT License, see LICENSE.txt.