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 1313 [ ![ License] (http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat
1414)] ( http://mit-license.org )
1515
16-
16+ ** The example project contains some hot App refresh example.
17+ **
1718<table >
1819<tr >
1920<th >Taobao</th >
@@ -71,13 +72,20 @@ pod "PullToRefreshKit"
7172
7273###Pull down to refresh
7374
75+
7476```
7577 self.tableView.setUpHeaderRefresh { [weak self] in
7678 delay(1.5, closure: {
7779 self?.tableView.endHeaderRefreshing(.Success)
7880 })
7981 }
8082```
83+ Add a delay if you want user to see the result of refresh result
84+
85+ ```
86+ self?.tableView.endHeaderRefreshing(.Success,delay: 0.5)
87+
88+ ```
8189
8290<img src =" https://raw.github.com/LeoMobileDeveloper/PullToRefreshKit/master/Screenshot/gif1.gif " width =" 320 " >
8391
@@ -96,12 +104,6 @@ Support three mode to fire refresh action
96104 })
97105 }
98106```
99- Add a delay if you want user to see the result of refresh result
100-
101- ```
102- self?.tableView.endHeaderRefreshing(.Success,delay: 0.5)
103-
104- ```
105107
106108<img src =" https://raw.github.com/LeoMobileDeveloper/PullToRefreshKit/master/Screenshot/gif2.gif " width =" 320 " >
107109
You can’t perform that action at this time.
0 commit comments