iOS: reset view node when reuse this node

This commit is contained in:
pengfei.zhou
2021-10-27 16:03:11 +08:00
committed by osborn
parent 986d32a8e0
commit 60c8651e10
11 changed files with 119 additions and 0 deletions

View File

@@ -231,4 +231,11 @@ - (void)removeDidScrollBlock:(__nonnull DoricDidScrollBlock)didScrollListener {
[self.didScrollBlocks removeObject:didScrollListener];
}
- (void)reset {
[super reset];
self.view.scrollEnabled = YES;
self.onScrollEndFuncId = nil;
self.onScrollFuncId = nil;
self.view.scrollEnabled = YES;
}
@end