Skip to content

Commit 96d27ac

Browse files
yunnayunna
yunna
authored and
yunna
committed
网络模块
1 parent a95abee commit 96d27ac

File tree

8 files changed

+15
-5
lines changed

8 files changed

+15
-5
lines changed
232 KB
Loading

iOS开发.mindnode/contents.xml

194 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

iOS开发.mindnode/viewState.plist

150 Bytes
Binary file not shown.

iOS知识点/iOS大杂烩/对UITableView进行性能调优/MyTableView/MyTableView/实现列表预加载/ListPrefetcher.swift

+15-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
//
88

99
import UIKit
10-
//MARK:--加载策略--
11-
protocol ListPrefetcherStrategy {
12-
var totalRowsCount:Int { get set }
13-
func shouldFetch(_ totalHeight:CGFloat, _ offsetY:CGFloat) -> Bool
14-
}
1510

1611
class ListPrefetcher: NSObject {
1712
@objc let scrollView:UIScrollView //观察对象
@@ -31,6 +26,21 @@ class ListPrefetcher: NSObject {
3126
}
3227

3328

29+
//MARK:--加载策略--
30+
protocol ListPrefetcherStrategy {
31+
var totalRowsCount:Int { get set }
32+
func shouldFetch(_ totalHeight:CGFloat, _ offsetY:CGFloat) -> Bool
33+
}
34+
35+
//MARK:--阈值策略--
36+
37+
38+
39+
40+
41+
42+
43+
3444

3545

3646

0 commit comments

Comments
 (0)