ASDK相关

07.ASDK整理:关于ASTableNode数据更新机制的一些

2017-09-28  本文已影响149人  黄x黄

数据更新机制
通过
- (BOOL)tableNode:(ASTableNode *)tableNode shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath
允许cell是否响应选中方法
- (void)tableNode:(ASTableNode *)tableNode didSelectRowAtIndexPath:(NSIndexPath *)indexPath

通过
- (BOOL)tableNode:(ASTableNode *)tableNode shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath
触发批量缓存节点方法
- (void)tableNode:(ASTableNode *)tableNode willBeginBatchFetchWithContext:(nonnull ASBatchContext *)context

shouldHighlightRowAtIndexPath只有在加载第一组数据,向下向右滚动时才会被触发。

可以参考官方实例Kittens

上一篇 下一篇

猜你喜欢

热点阅读