Git Product home page Git Product logo

qbrefreshcontrol's Introduction

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
  1. Override init, beginRefreshing, endRefreshing as necessary.

Example

See QBRefreshControl project for example usage.

License

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

qbrefreshcontrol's People

Contributors

nek023 avatar alexdenisov avatar muer2000 avatar

Stargazers

 avatar stevenlfg avatar Jun Wang avatar Anton Lookin avatar  avatar  avatar 开水白菜 avatar Cash Wong avatar  avatar Kevin.Xiao avatar Tassel avatar Bob Edmonston avatar Baor avatar Denys Telezhkin avatar José Aguirre avatar Jingbo avatar  avatar James avatar  avatar  avatar Ryan avatar Kei Ishida avatar  avatar Łukasz Przytuła avatar  avatar  avatar Richard Fenn avatar Alex Sherbakov avatar Gustavo Barbosa avatar Yosi Taguri avatar Komkrit Kawichai avatar  avatar Scott Greiff avatar  avatar  avatar Yosuke Ishikawa avatar Jason Hsu avatar  avatar Keiichiro Matsumoto avatar  avatar Ben Reed avatar CelebConnect avatar kusoware avatar Simone Leopizzi avatar zhengying avatar Nilesh  avatar KennethPCF avatar  avatar Cemal YILMAZ avatar Luke Stringer avatar mayulu avatar  avatar Romain Briche avatar Yasuhiro Inami avatar Daniel Wittberger avatar Travis Jeffery avatar

Watchers

mayulu avatar James Cloos avatar zhengying avatar 开水白菜 avatar  avatar

qbrefreshcontrol's Issues

adding control to UIScrollView

hi,
i added your control to my uiscrollview.
when my uiviewcontroller unload it gives an error.
[UIScrollView release]: message sent to deallocated instance 0xc598090

self.myRefreshControl.delegate=nil;
scrollView.delegate=nil;

i set the delegate to nil but still same error.

there is no error if i don't use the control. can you help?

Create a Pod spec

Hi!

I was creating a spec on Cocoapods but without success. To do that, we need to create a tag to point to it at the *.podspec.

Are you planning to create an initial version for the project? If yes, we also need to create a tag for its dependency (QBAnimationSequence).

If you don't have time to create the whole spec, just create the tag versions and I can create the podspec file here and submit it to Cocoapods.

What do you think?

Regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.