iOS head node logic changed

This commit is contained in:
王劲鹏
2020-01-09 19:00:53 +08:00
committed by osborn
parent 9a77578b9b
commit 7378ce8449
3 changed files with 21 additions and 6 deletions

View File

@@ -49,8 +49,13 @@ - (DoricViewNode *)targetViewNode:(NSString *)viewId {
if ([self.rootNode.viewId isEqualToString:viewId]) {
return self.rootNode;
} else {
return self.headNodes[viewId];
for (NSMutableDictionary <NSString *, DoricViewNode *> *map in self.headNodes.allValues) {
if ([[map allKeys] containsObject:viewId]) {
return map[viewId];
}
}
}
return nil;
}
- (void)dealloc {