/QBRefreshControl

An abstract base class for creating a refresh control.

Primary LanguageObjective-CMIT LicenseMIT

QBRefreshControl

QBRefreshControl is an abstract base class for creating a refresh control.

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 setState: method to specify the behavior for each state of the control.
    In this method, you have to write a switch() block and the following cases after [super setState:state].
    • QBRefreshControlStateHidden
    • QBRefreshControlStatePullingDown
    • QBRefreshControlStateOveredThreshold
  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.