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

Commit 60664a6

Browse files
删除无用代码,更新README
1 parent ae991f2 commit 60664a6

21 files changed

Lines changed: 309 additions & 1385 deletions

PullToRefreshKit.xcodeproj/project.pbxproj

Lines changed: 36 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@
1616
5238C7D31D37427C00B3B4FE /* TaoBaoRefreshHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7D21D37427C00B3B4FE /* TaoBaoRefreshHeader.swift */; };
1717
5238C7D51D37449800B3B4FE /* CustomHeaderTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7D41D37449800B3B4FE /* CustomHeaderTableViewController.swift */; };
1818
5238C7F51D3758A900B3B4FE /* CustomFooterTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7F41D3758A900B3B4FE /* CustomFooterTableViewController.swift */; };
19-
52BB29171D3639500091F36B /* arrow_down@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 52BB290E1D3639500091F36B /* arrow_down@3x.png */; };
20-
52BB29181D3639500091F36B /* arrow_left@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 52BB290F1D3639500091F36B /* arrow_left@3x.png */; };
21-
52BB29191D3639500091F36B /* arrow_right@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 52BB29101D3639500091F36B /* arrow_right@3x.png */; };
22-
52BB291A1D3639500091F36B /* Const.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29111D3639500091F36B /* Const.swift */; };
23-
52BB291B1D3639500091F36B /* Footer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29121D3639500091F36B /* Footer.swift */; };
24-
52BB291C1D3639500091F36B /* Header.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29131D3639500091F36B /* Header.swift */; };
25-
52BB291D1D3639500091F36B /* Left.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29141D3639500091F36B /* Left.swift */; };
26-
52BB291E1D3639500091F36B /* PullToRefreshKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29151D3639500091F36B /* PullToRefreshKit.swift */; };
27-
52BB291F1D3639500091F36B /* Right.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29161D3639500091F36B /* Right.swift */; };
28-
52BB29231D3640610091F36B /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 52BB29201D3640610091F36B /* LICENSE */; };
29-
52BB29241D3640610091F36B /* PullToRefreshKit.podspec in Resources */ = {isa = PBXBuildFile; fileRef = 52BB29211D3640610091F36B /* PullToRefreshKit.podspec */; };
19+
5238C7FE1D3763BA00B3B4FE /* Const.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7F81D3763BA00B3B4FE /* Const.swift */; };
20+
5238C7FF1D3763BA00B3B4FE /* Footer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7F91D3763BA00B3B4FE /* Footer.swift */; };
21+
5238C8001D3763BA00B3B4FE /* Header.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7FA1D3763BA00B3B4FE /* Header.swift */; };
22+
5238C8011D3763BA00B3B4FE /* Left.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7FB1D3763BA00B3B4FE /* Left.swift */; };
23+
5238C8021D3763BA00B3B4FE /* PullToRefreshKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7FC1D3763BA00B3B4FE /* PullToRefreshKit.swift */; };
24+
5238C8031D3763BA00B3B4FE /* Right.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5238C7FD1D3763BA00B3B4FE /* Right.swift */; };
25+
5238C8071D3763CD00B3B4FE /* arrow_down@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5238C8041D3763CD00B3B4FE /* arrow_down@3x.png */; };
26+
5238C8081D3763CD00B3B4FE /* arrow_left@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5238C8051D3763CD00B3B4FE /* arrow_left@3x.png */; };
27+
5238C8091D3763CD00B3B4FE /* arrow_right@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 5238C8061D3763CD00B3B4FE /* arrow_right@3x.png */; };
3028
52BB29281D3644D00091F36B /* SectionModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29271D3644D00091F36B /* SectionModel.swift */; };
3129
52BB292E1D364C6D0091F36B /* RowModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB292D1D364C6D0091F36B /* RowModel.swift */; };
3230
52BB29321D364E490091F36B /* DefaultTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52BB29311D364E490091F36B /* DefaultTableViewController.swift */; };
@@ -49,18 +47,15 @@
4947
5238C7D21D37427C00B3B4FE /* TaoBaoRefreshHeader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TaoBaoRefreshHeader.swift; sourceTree = "<group>"; };
5048
5238C7D41D37449800B3B4FE /* CustomHeaderTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomHeaderTableViewController.swift; sourceTree = "<group>"; };
5149
5238C7F41D3758A900B3B4FE /* CustomFooterTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomFooterTableViewController.swift; sourceTree = "<group>"; };
52-
52BB290E1D3639500091F36B /* arrow_down@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "arrow_down@3x.png"; sourceTree = "<group>"; };
53-
52BB290F1D3639500091F36B /* arrow_left@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "arrow_left@3x.png"; sourceTree = "<group>"; };
54-
52BB29101D3639500091F36B /* arrow_right@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "arrow_right@3x.png"; sourceTree = "<group>"; };
55-
52BB29111D3639500091F36B /* Const.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Const.swift; sourceTree = "<group>"; };
56-
52BB29121D3639500091F36B /* Footer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Footer.swift; sourceTree = "<group>"; };
57-
52BB29131D3639500091F36B /* Header.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Header.swift; sourceTree = "<group>"; };
58-
52BB29141D3639500091F36B /* Left.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Left.swift; sourceTree = "<group>"; };
59-
52BB29151D3639500091F36B /* PullToRefreshKit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PullToRefreshKit.swift; sourceTree = "<group>"; };
60-
52BB29161D3639500091F36B /* Right.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Right.swift; sourceTree = "<group>"; };
61-
52BB29201D3640610091F36B /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
62-
52BB29211D3640610091F36B /* PullToRefreshKit.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = PullToRefreshKit.podspec; sourceTree = "<group>"; };
63-
52BB29221D3640610091F36B /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
50+
5238C7F81D3763BA00B3B4FE /* Const.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Const.swift; path = Source/Classes/Const.swift; sourceTree = SOURCE_ROOT; };
51+
5238C7F91D3763BA00B3B4FE /* Footer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Footer.swift; path = Source/Classes/Footer.swift; sourceTree = SOURCE_ROOT; };
52+
5238C7FA1D3763BA00B3B4FE /* Header.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Header.swift; path = Source/Classes/Header.swift; sourceTree = SOURCE_ROOT; };
53+
5238C7FB1D3763BA00B3B4FE /* Left.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Left.swift; path = Source/Classes/Left.swift; sourceTree = SOURCE_ROOT; };
54+
5238C7FC1D3763BA00B3B4FE /* PullToRefreshKit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PullToRefreshKit.swift; path = Source/Classes/PullToRefreshKit.swift; sourceTree = SOURCE_ROOT; };
55+
5238C7FD1D3763BA00B3B4FE /* Right.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Right.swift; path = Source/Classes/Right.swift; sourceTree = SOURCE_ROOT; };
56+
5238C8041D3763CD00B3B4FE /* arrow_down@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "arrow_down@3x.png"; path = "Source/Assets/arrow_down@3x.png"; sourceTree = SOURCE_ROOT; };
57+
5238C8051D3763CD00B3B4FE /* arrow_left@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "arrow_left@3x.png"; path = "Source/Assets/arrow_left@3x.png"; sourceTree = SOURCE_ROOT; };
58+
5238C8061D3763CD00B3B4FE /* arrow_right@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "arrow_right@3x.png"; path = "Source/Assets/arrow_right@3x.png"; sourceTree = SOURCE_ROOT; };
6459
52BB29271D3644D00091F36B /* SectionModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SectionModel.swift; sourceTree = "<group>"; };
6560
52BB292D1D364C6D0091F36B /* RowModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RowModel.swift; sourceTree = "<group>"; };
6661
52BB29311D364E490091F36B /* DefaultTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DefaultTableViewController.swift; sourceTree = "<group>"; };
@@ -102,22 +97,22 @@
10297
52BB29291D364C1C0091F36B /* Images */ = {
10398
isa = PBXGroup;
10499
children = (
105-
52BB290E1D3639500091F36B /* arrow_down@3x.png */,
106-
52BB290F1D3639500091F36B /* arrow_left@3x.png */,
107-
52BB29101D3639500091F36B /* arrow_right@3x.png */,
100+
5238C8041D3763CD00B3B4FE /* arrow_down@3x.png */,
101+
5238C8051D3763CD00B3B4FE /* arrow_left@3x.png */,
102+
5238C8061D3763CD00B3B4FE /* arrow_right@3x.png */,
108103
);
109104
name = Images;
110105
sourceTree = "<group>";
111106
};
112107
52BB292A1D364C260091F36B /* Classes */ = {
113108
isa = PBXGroup;
114109
children = (
115-
52BB29111D3639500091F36B /* Const.swift */,
116-
52BB29121D3639500091F36B /* Footer.swift */,
117-
52BB29131D3639500091F36B /* Header.swift */,
118-
52BB29141D3639500091F36B /* Left.swift */,
119-
52BB29151D3639500091F36B /* PullToRefreshKit.swift */,
120-
52BB29161D3639500091F36B /* Right.swift */,
110+
5238C7F81D3763BA00B3B4FE /* Const.swift */,
111+
5238C7F91D3763BA00B3B4FE /* Footer.swift */,
112+
5238C7FA1D3763BA00B3B4FE /* Header.swift */,
113+
5238C7FB1D3763BA00B3B4FE /* Left.swift */,
114+
5238C7FC1D3763BA00B3B4FE /* PullToRefreshKit.swift */,
115+
5238C7FD1D3763BA00B3B4FE /* Right.swift */,
121116
);
122117
name = Classes;
123118
sourceTree = "<group>";
@@ -164,9 +159,6 @@
164159
52E8FB3E1D336E26000D0BF1 /* PullToRefreshKit */ = {
165160
isa = PBXGroup;
166161
children = (
167-
52BB29211D3640610091F36B /* PullToRefreshKit.podspec */,
168-
52BB29201D3640610091F36B /* LICENSE */,
169-
52BB29221D3640610091F36B /* README.md */,
170162
52E8FB511D336FCE000D0BF1 /* Sources */,
171163
52BB29261D3640700091F36B /* Examples */,
172164
52E8FB3F1D336E26000D0BF1 /* AppDelegate.swift */,
@@ -247,16 +239,14 @@
247239
isa = PBXResourcesBuildPhase;
248240
buildActionMask = 2147483647;
249241
files = (
242+
5238C8091D3763CD00B3B4FE /* arrow_right@3x.png in Resources */,
250243
52261F111D36878A00161ADF /* banner2.jpg in Resources */,
251-
52BB29191D3639500091F36B /* arrow_right@3x.png in Resources */,
244+
5238C8071D3763CD00B3B4FE /* arrow_down@3x.png in Resources */,
252245
52261F101D36878A00161ADF /* banner1.jpg in Resources */,
253246
52E8FB4A1D336E26000D0BF1 /* LaunchScreen.storyboard in Resources */,
254-
52BB29171D3639500091F36B /* arrow_down@3x.png in Resources */,
255-
52BB29241D3640610091F36B /* PullToRefreshKit.podspec in Resources */,
256-
52BB29231D3640610091F36B /* LICENSE in Resources */,
257247
52E8FB471D336E26000D0BF1 /* Assets.xcassets in Resources */,
248+
5238C8081D3763CD00B3B4FE /* arrow_left@3x.png in Resources */,
258249
52E8FB451D336E26000D0BF1 /* Main.storyboard in Resources */,
259-
52BB29181D3639500091F36B /* arrow_left@3x.png in Resources */,
260250
);
261251
runOnlyForDeploymentPostprocessing = 0;
262252
};
@@ -267,26 +257,26 @@
267257
isa = PBXSourcesBuildPhase;
268258
buildActionMask = 2147483647;
269259
files = (
270-
52BB291E1D3639500091F36B /* PullToRefreshKit.swift in Sources */,
260+
5238C8011D3763BA00B3B4FE /* Left.swift in Sources */,
271261
5238C7F51D3758A900B3B4FE /* CustomFooterTableViewController.swift in Sources */,
272-
52BB291D1D3639500091F36B /* Left.swift in Sources */,
273262
52BB29281D3644D00091F36B /* SectionModel.swift in Sources */,
274-
52BB291F1D3639500091F36B /* Right.swift in Sources */,
275-
52BB291A1D3639500091F36B /* Const.swift in Sources */,
263+
5238C8021D3763BA00B3B4FE /* PullToRefreshKit.swift in Sources */,
276264
52261F131D36879C00161ADF /* DefaultBannerController.swift in Sources */,
277265
5238C7D31D37427C00B3B4FE /* TaoBaoRefreshHeader.swift in Sources */,
278266
52E8FB421D336E26000D0BF1 /* MainViewController.swift in Sources */,
279267
52E8FB401D336E26000D0BF1 /* AppDelegate.swift in Sources */,
268+
5238C7FF1D3763BA00B3B4FE /* Footer.swift in Sources */,
280269
52BB29341D3655B90091F36B /* Util.swift in Sources */,
270+
5238C8001D3763BA00B3B4FE /* Header.swift in Sources */,
281271
5238C7D51D37449800B3B4FE /* CustomHeaderTableViewController.swift in Sources */,
282272
52261F0B1D36730F00161ADF /* DefaultCollectionViewController.swift in Sources */,
283273
52261F0D1D36832600161ADF /* ConfigHeaderFooterController.swift in Sources */,
284274
52C0E4881D3726EB00618231 /* ConfigBannerController.swift in Sources */,
285-
52BB291C1D3639500091F36B /* Header.swift in Sources */,
286275
52BB29321D364E490091F36B /* DefaultTableViewController.swift in Sources */,
276+
5238C8031D3763BA00B3B4FE /* Right.swift in Sources */,
287277
5238C7D11D373B3300B3B4FE /* DefaultScrollViewController.swift in Sources */,
288278
52BB292E1D364C6D0091F36B /* RowModel.swift in Sources */,
289-
52BB291B1D3639500091F36B /* Footer.swift in Sources */,
279+
5238C7FE1D3763BA00B3B4FE /* Const.swift in Sources */,
290280
);
291281
runOnlyForDeploymentPostprocessing = 0;
292282
};

PullToRefreshKit/Const.swift

Lines changed: 0 additions & 56 deletions
This file was deleted.

PullToRefreshKit/CustomHeaderTableViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class CustomHeaderTableViewController:UITableViewController{
2222
self?.tableView.endHeaderRefreshing(.Success)
2323
})
2424
}
25-
self.tableView.beginHeaderRefreshing()
2625
}
2726
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
2827
return models.count

0 commit comments

Comments
 (0)