欢迎光临
我们一直在努力

[Swift]PullToMakeSoup

建站超值云服务器,限时71元/月

[Swift]PullToMakeSoup

项目介绍:

Custom animated pull-to-refresh that can be easily added to UIScrollView


PullToMakeSoup 是一个下拉刷新控件,自定义动画效果,效果如gif图所示,可以轻松的加在UIScrollView之上。

Requirements

  • iOS 8.0+
  • Xcode 7
  • Swift 2



集成过程:1、支持Carthage , CocoaPods
Carthage
github "Yalantis/PullToMakeSoup" "master"


Installing with CocoaPods
use_frameworks!pod ‘PullToMakeSoup’, ‘~> 1.2’
Usage 集成代码

[Objective-C] 查看源文件 复制代码


import PullToMakeSoup


let refresher = PullToMakeSoup()
Add refresher to your UIScrollView subclass in 'viewDidAppear' method and provide action block:

override func viewDidAppear(animated: Bool) {
    super.viewDidAppear(animated)
    tableView.addPullToRefresh(refresher, action: {
        // action to be performed (pull data from some source)
    })
}


DEMO 直接下载:

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » [Swift]PullToMakeSoup
分享到: 更多 (0)