Latest 0.0.2
Homepage https://github.com/xtrinch/MRPullToRefreshLoadMore
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Pull to refresh and load more loader with delegate methods for UITableViews, UICollectionViews (and planned: UIScrollviews). Its usage is extremely simple as it onnly requires setting a class on your uiview. Example project contains tableview and horizontally scrolling collectionview.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Pull to refresh a table view:

MRPullToRefreshLoadMore

Load more in a table view:

MRPullToRefreshLoadMore

Pull to refresh in horizontally scrolling collection view:

MRPullToRefreshLoadMore

Usage

import MRPullToRefreshLoadMore

class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, MRPullToRefreshLoadMoreDelegate {

    @IBOutlet weak var tableView: MRTableView!

    override func viewDidLoad() {
        super.viewDidLoad()
        tableView.delegate = self
        tableView.dataSource = self
        tableView.pullToRefresh.pullToRefreshLoadMoreDelegate = self
    }

    func viewShouldRefresh() {
      // refresh tableview
    }

    func viewShouldLoadMore() {
      // load more in tableview
    }
}

Available classes: MRTableView, MRCollectionView

Installation

MRPullToRefreshLoadMore is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MRPullToRefreshLoadMore"

Issues && Todo

  • Need to disable refresh / load more if either of them is already under way
  • Add scrollview support

Author

xTrinch, [email protected]

License

MRPullToRefreshLoadMore is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MRPullToRefreshLoadMore",
    "version": "0.0.2",
    "summary": "Easy and simple way to add pull to refresh and load more for table views, collection views and even scrollviews",
    "description": "Pull to refresh and load more loader with delegate methods for tableviews, collectionviews and scrollviews. Its usage is extremely simple as it onnly requires setting a class on your uiview. Example project contains tableview and horizontally scrolling collectionview.",
    "homepage": "https://github.com/xtrinch/MRPullToRefreshLoadMore",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mojca Rojko": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xtrinch/MRPullToRefreshLoadMore.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MRPullToRefreshLoadMore/Classes/**/*"
}

Pin It on Pinterest

Share This