Latest 1.0.6
Homepage https://github.com/CoderJFCK/kk_refresh
License MIT
Platforms ios 8.0, requires ARC
Authors

Requirements

  • ios8.0+
  • swift3.0+

Installation

pod 'kk_refresh'

Usage

tableView.kk_header = RefreshView.kk_refresh(.gif(images), {
    code
})
tableView.kk_header.beginRefreshing()
  • style:

    支持5种风格的样式

    public enum RefreshStyle {
    
    case normal()              // 菊花指示器、title
    case gif([UIImage])        // 图片动画、title
    case gif_only([UIImage])   // 只有图片
    case text()                // 只有文字
    case indicator()           // 只有菊花指示器

    使用方式:可参见创建控件的方法,在创建控件的方法时的第一个参数就是传入指定的样式,如下:

    /// 初始化方法
    ///
    /// - Parameters:
    ///   - style: 刷新控件的样式、风格
    ///   - complete: 刷新完成后的回调
    /// - Returns: 返回一个实例化对象
    
    public class func kk_refresh(_ style: RefreshStyle, _ complete: @escaping CallBack) -> RefreshView {
        ····
    }

Latest podspec

{
    "name": "kk_refresh",
    "version": "1.0.6",
    "summary": "a component of refresh on iOS",
    "homepage": "https://github.com/CoderJFCK/kk_refresh",
    "description": "It is a component for ios refresh, written by Swift.",
    "license": "MIT",
    "authors": {
        "Kirk": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/CoderJFCK/kk_refresh.git",
        "tag": "1.0.6"
    },
    "source_files": "kk_refresh/Refresh/*",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This