Latest 0.1.3
Homepage https://github.com/jamy0801/LGMagicRefresh
License MIT
Platforms ios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

Usage

LGMagicRefresh集合了多种炫酷刷新样式,几行代码就可以实现,基于swift2.0实现,代码简单易用,具体效果可以查看下面的示例图,如果你喜欢的话,欢迎给个star,嘻嘻,另外,你可以可以加入QQ群:469492027,一起探讨swift,期待大神你的加入~~~

Requirements

swift2.0 ios8.0

Installation

To run the example project, clone the repo, and run pod install from the Example directory first.
LGMagicRefresh is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "LGMagicRefresh"

preView

(自定义loading)

(仿喜马拉雅APP效果)

(仿大众点评效果)

(自定义图片)

how to use

1:使用默认的加载页面,配合loading view:

    tableView.lg_addHeadRefresh(indicatorType, actionHandler: action)

其中indicatorType可以是下面几种类型:

    case Default = 1
    case Line
    case BallScale
    case LineScale
    case BallRotate
    case BallGird
    case BallScaleRotate
    case BallRotateChase
    case Snow
    case TwoBallRotate

2: 自定义加载和load view:

    let view = LGMagicRefreshBallRotateView()
    tableView.lg_addHeadRefresh(view, showState: false, showTime: false, actionHandler: action)

其中view只要继承LGMagicRefreshLoadingView类并实现方法即可~~

()

()

()

(苹果录音效果)

(邮箱大师)

(9宫格)

(旋转)

(粒子效果)

(集成webview)

Author

jamy0801, [email protected]

License

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

Latest podspec

{
    "name": "LGMagicRefresh",
    "version": "0.1.3",
    "summary": "A easy way to use pull to refresh.",
    "homepage": "https://github.com/jamy0801/LGMagicRefresh",
    "license": "MIT",
    "authors": {
        "jamy0801": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jamy0801/LGMagicRefresh.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resources": "Pod/Classes/LGMagicRefresh.bundle"
}

Pin It on Pinterest

Share This