Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emenegro/bottom-pull-to-refresh
Pull-to-Refresh behavior at the bottom of a UITableView
https://github.com/emenegro/bottom-pull-to-refresh
Last synced: 3 months ago
JSON representation
Pull-to-Refresh behavior at the bottom of a UITableView
- Host: GitHub
- URL: https://github.com/emenegro/bottom-pull-to-refresh
- Owner: emenegro
- Created: 2012-01-23T17:44:25.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-08-17T17:34:24.000Z (over 9 years ago)
- Last Synced: 2024-03-15T14:48:14.775Z (11 months ago)
- Language: Objective-C
- Homepage:
- Size: 226 KB
- Stars: 117
- Watchers: 9
- Forks: 41
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - bottom-pull-to-refresh - Pull-to-Refresh behavior at the bottom of a UITableView (etc)
- awesome - bottom-pull-to-refresh - Pull-to-Refresh behavior at the bottom of a UITableView (etc)
README
MNMBottomPullToRefresh is a solution to add pull-to-refresh feature to the bottom of an UITableView instead of the top, as usual. This view can be used to retrieve more values, or pages, of a large list.
This solution has its basis on the Mediator design pattern (http://en.wikipedia.org/wiki/Mediator_pattern). `MNMBottomPullToRefreshManager` acts as a Mediator between the pull-to-refresh view and its container table view, decoupling the view and the scroll management.
In order to maintain this decoupling, there is no `UITableView` subclass, allowing developers to add this behavior as an aggregate of its own subclasses of `UITableView` without creating an intermediate class or adding directly in the UIViewController that manages table delegate and data source.
Installation instructions:
-------------------------1) Copy the whole `MNMBottomPullToRefresh` folder into your project
2) In your UIViewController class, create a `MNMBottomPullToRefreshManager` to link an `UITableView` and the `MNMPullToRefreshView`. Use a sentence like this:
pullToRefreshManager_ = [[MNMBottomPullToRefreshManager alloc] initWithPullToRefreshViewHeight:60.0f
tableView:table_
withClient:self];
3) Implement `MNMBottomPullToRefreshManagerClient` selectors on your UIViewController in order to inform to delegate about the correct offset of the table4) You can see a this usage in `MNMBPTRViewController`
Documentation
=============1) Execute `appledoc appledoc.plist` in the root of the project path to generate documentation.
License
=======Copyright (c) 2012 Mario Negro.
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.