This repository was archived by the owner on Jul 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,9 +77,6 @@ class TaoBaoRefreshHeader:UIView,RefreshableHeader{
7777 }
7878 func percentUpdateWhenNotRefreshing( percent: CGFloat ) {
7979 let adjustPercent = max ( min ( 1.0 , percent) , 0.0 )
80- transitionWithOutAnimation {
81- self . circleLayer. strokeEnd = 0.05 + ( 0.95 - 0.05 ) * adjustPercent
82- } ;
8380 if adjustPercent == 1.0 {
8481 textLabel. text = " 释放即可刷新... "
8582 } else {
Original file line number Diff line number Diff line change @@ -22,11 +22,10 @@ self.tableView.setUpHeaderRefresh { [weak self] in
2222 })
2323}
2424```
25- 这个库的设计初衷,是为了能够方便地实现自定义的下拉刷新,上拉加载等。比如,Demo中,我用了不到60行,就实现了大众点评的下拉刷新。实例代码: [ DianpingRefreshHeader. swift] ( https://github.com/LeoMobileDeveloper/PullToRefreshKit/blob/master/PullToRefreshKit/DianpingRefreshHeader.swift )
25+ 这个库的设计初衷,是为了能够方便地实现自定义的下拉刷新,上拉加载等。比如,Demo中,我列举了用这个框架如何实现 [ 淘宝 ] ( https://github.com/LeoMobileDeveloper/PullToRefreshKit/blob/master/PullToRefreshKit/TaoBaoRefreshHeader. swift) 和 [ 大众点评 ] ( https://github.com/LeoMobileDeveloper/PullToRefreshKit/blob/master/PullToRefreshKit/DianpingRefreshHeader.swift ) 的下拉刷新。
2626
27- 效果
2827
29- <img src =" https://raw.github.com/LeoMobileDeveloper/PullToRefreshKit/master/Screenshot/dianping.gif " width =" 200 " >
28+ <img src =" https://raw.github.com/LeoMobileDeveloper/PullToRefreshKit/master/Screenshot/taobao.gif " width = " 200 " >< img src = " https://raw.github.com/LeoMobileDeveloper/PullToRefreshKit/master/Screenshot/ dianping.gif" width =" 200 " >
3029
3130## 要求
3231
You can’t perform that action at this time.
0 commit comments