代码库> 刷新控件> SurfingRefreshControl
SurfingRefreshControl
关注
上传者:peiwei 分类:刷新控件(Refresh Control)
查看次数:1333 下载次数:204
上传时间:2016-06-13 大小:128 B
CBStoreHouseRefreshControl的Swift版本,调整了代码结构,删减大量多余代码,修复了许多漏洞。

初始化:
self.surfingRefreshControl = SurfingRefreshControl.attachToScrollView(tableView, target: self,refreshAction:#selector(DemoViewController.refreshTriggered), plist: "surfing", color: UIColor.whiteColor(),lineWidth: 1.5, dropHeight: 120, scale: 1.0, horizontalRandomness: 100, reverseLoadingAnimation: false, internalAnimationFactor: 0.8)

通知scrollView:

override func scrollViewDidScroll(scrollView: UIScrollView) {
self.surfingRefreshControl.scrollViewDidScroll(scrollView)
}

override func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {
self.surfingRefreshControl.scrollViewDidEndDragging(scrollView, willDecelerate: decelerate)
}

结束时:
self.surfingRefreshControl.finishLoading()
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0
综合评论
提示
sina weixin mail 回到顶部