Latest 1.0.0
Homepage https://github.com/cbangchen/CBPullToReflesh
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation
Authors

Cbangchen
Version
License
Platform

Dribbble网址:Daily-UI-094-News,点击 此处 查看详细教程

Requirements

  • Swift 3.0
  • iOS 8.0

Installation

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

pod "CBPullToReflesh"

Don’t forget to specify you Swift version.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
    end
  end
end

Usage

Wrap your scrollView

let tableViewWrapper = PullToRefleshView(scrollView: yourTableView)
bodyView.addSubview(tableViewWrapper)

The color of the wrapper will be same as your scrollView’s background color.

Handler

tableViewWrapper.didPullToRefresh = {
   //...
}

End the reflesh simplily

 tableViewWrapper.endReflesh()

Latest podspec

{
    "name": "CBPullToReflesh",
    "version": "1.0.0",
    "summary": "Mobile page refresh concept inspired by Google and for something like a news app.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/cbangchen/CBPullToReflesh",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "cbangchen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/cbangchen/CBPullToReflesh.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CBPullToReflesh/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This