Substantially improve behavior of nested Table & Collection Nodes

This ensures memory cleanup happens correctly and introduces a new test project
to support developing new features while stressing tough use cases for correctness.
This commit is contained in:
Scott Goodson
2015-11-14 15:25:35 -08:00
parent a24cfe691a
commit 2a0b9c8e14
30 changed files with 997 additions and 41 deletions

View File

@@ -898,4 +898,24 @@ static BOOL _isInterceptedSelector(SEL sel)
[super performBatchUpdates:^{} completion:nil];
}
#pragma mark - Memory Management
- (void)clearContents
{
for (NSArray *section in [_dataController completedNodes]) {
for (ASDisplayNode *node in section) {
[node recursivelyClearContents];
}
}
}
- (void)clearFetchedData
{
for (NSArray *section in [_dataController completedNodes]) {
for (ASDisplayNode *node in section) {
[node recursivelyClearFetchedData];
}
}
}
@end