Code Monkey home page Code Monkey logo

phrefreshtriggerview's Introduction

Description

This library brings the concept of "Pull to refresh" to UIGestureRecognizer. It uses recognizer instead of the UIScrollView delegate to manage itself.

How to use

Using the Framework as-is

Drag the PHRefreshGestureRecognizer.embeddedframework folder into XCode like any other file. Make sure you check the "Copy items into destination group's folder (if needed)". This folder includes the .framework folder that includes the public header and the resources (the arrows) as well.

To use the library, import the framework: #import <PHRefreshGestureRecognizer/PHRefreshGestureRecognizer.h>

Using source files

If you want to modify the code, you have to drag the .h and .m files that are located in PHRefreshGestureRecognizer.

Todo

If you feel that this library is missing something, feel free to send a pull request my way or ask for it in the issues section. I will gladly add it if it's possible.

Credits

Pier-Olivier Thibault and it's contributors.

Also I would like to thank Enormego for creating its EGOTableViewPullRefresh. I have used one of his arrow in this project.

License

Copyright (C) 2012 Pier-Olivier Thibault

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

phrefreshtriggerview's People

Contributors

peyton avatar pier-oliviert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phrefreshtriggerview's Issues

Interferes with cells moving

Unable to move a cell once the gesture has been added to the table view. You can 'pick up' a cell, you just drag it anywhere :)

Current HEAD won't run successfully

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/foobar/Library/Application Support/iPhone Simulator/5.1/Applications/DFE98FA0-DB42-4AAE-A570-211FC29034CC/Test Application.app> (loaded)' with name 'PHViewController''

problem with selection/deselection

There is some issue with selection after enable this feature. Actually looks that selection/deselection stop working at all. I based on example file to implement this feature.

index in UItableview gets obscured

Very elegant solution to pull-to-refresh!

However, I have the following problem: I have a table with an index on the right hand side. While in "loading" state, the index gets obscured. Every second letter becomes a "." (dot). Didn't see that sectionForSectionIndexTitle() gets called. After the pull-to-refresh is released, everything returns to normal.

Any idea why this might be happening?

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.