iOS head node logic changed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user