Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Commit 494ca24

Browse files
Fix readme
1 parent 3166eb8 commit 494ca24

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
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

0 commit comments

Comments
 (0)