Skip to content
An abstract base class for creating a refresh control.
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
QBAnimationSequence @ 81c6f62
QBRefreshControl.xcodeproj
QBRefreshControl
.gitignore Convert to ARC Jun 8, 2013
.gitmodules
LICENSE.txt
README.md

README.md

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

ss01.png ss02.png ss03.png

Usage

It is very easy to create your own refresh control conforming QBRefreshControl.

  1. Create a subclass of QBRefreshControl.
  2. Override stateChanged: method to specify the behavior for each state of the control.
    In this method, you have to write a switch() block.
    • QBRefreshControlStateHidden
    • QBRefreshControlStatePullingDown
    • QBRefreshControlStateOveredThreshold
    • QBRefreshControlStateStopping
  3. Override init, beginRefreshing, endRefreshing as necessary.

Example

See QBRefreshControl project for example usage.

License

QBRefreshControl is released under the MIT License, see LICENSE.txt.

Something went wrong with that request. Please try again.