Latest 0.0.1
Homepage https://github.com/emenegro/bottom-pull-to-refresh
License MIT Copyright (c) 2012 Mario Negro Martín

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.

Platforms ios 5.0, requires ARC

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 table

4) 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.

Latest podspec

{
    "name": "MNMBottomPullToRefresh",
    "version": "0.0.1",
    "summary": ".",
    "description": "                    MNMBottomPullToRefresh is a solution to add pull-to-refresh feature to the bottom of an UITableView instead of the top, as usual.n",
    "homepage": "https://github.com/emenegro/bottom-pull-to-refresh",
    "platforms": {
        "ios": "5.0"
    },
    "authors": "Mario Negro",
    "license": {
        "type": "MIT",
        "text": "      Copyright (c) 2012 Mario Negro Martu00ednnn      Permission is hereby granted, free of charge, to any person obtainingn      a copy of this software and associated documentation files (then      "Software"), to deal in the Software without restriction, includingn      without limitation the rights to use, copy, modify, merge, publish,n      distribute, sublicense, and/or sell copies of the Software, and ton      permit persons to whom the Software is furnished to do so, subject ton      the following conditions:nn      The above copyright notice and this permission notice shall ben      included in all copies or substantial portions of the Software.nn      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,n      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFn      MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDn      NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BEn      LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONn      OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONn      WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. n"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/emenegro/bottom-pull-to-refresh.git",
        "commit": "82d5fed6dd7f4a4df531a6954398b60b9aecec6d"
    },
    "source_files": "MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/*.{h,m}",
    "resources": "MNMBottomPullToRefreshDemo/MNMBottomPullToRefresh/*.{png,strings}"
}

Pin It on Pinterest

Share This