Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiabob authored Dec 22, 2016
1 parent ff872d2 commit 733e6be
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,22 @@ iOS 高性能异构滚动视图构建方案 —— LazyScrollView
- (void)scrollView:(LazyScrollView *)scrollView didClickItemAtIndex:(NSUInteger)index;
</pre>

###调用核心API
<pre>
- (void)reloadData;
</pre>

重新走一遍DataSource的这些方法,等同于TableView中的reloadData
<pre>
- (UIView *)dequeueReusableItemWithIdentifier:(NSString *)identifier
</pre>

根据identifier获取可以复用的View。和TableView的dequeueReusableCellWithIdentifier:(NSString *)identifier方法意义相同。通常是在LazyScrollViewDatasource第三个方法,返回View的时候使用。

<pre>
- (void)registerClass:(Class)viewClass forViewReuseIdentifier:(NSString *)identifier
</pre>

功能和TableView的registerClass:(nullable Class)cellClass forCellReuseIdentifier:(NSString *)identifier一样
</pre>tableView
</pre>

0 comments on commit 733e6be

Please sign in to comment.