add view id display
This commit is contained in:
parent
269f83775b
commit
c49bfadb9c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -38,4 +38,6 @@
|
|||||||
- (DoricViewNode *)subNodeWithViewId:(NSString *)viewId;
|
- (DoricViewNode *)subNodeWithViewId:(NSString *)viewId;
|
||||||
|
|
||||||
- (void)recursiveMixin:(NSDictionary *)srcModel to:(NSMutableDictionary *)targetModel;
|
- (void)recursiveMixin:(NSDictionary *)srcModel to:(NSMutableDictionary *)targetModel;
|
||||||
@end
|
|
||||||
|
- (NSArray *)getSubNodeViewIds;
|
||||||
|
@end
|
||||||
|
@ -128,4 +128,20 @@ - (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {
|
|||||||
NSStringFromSelector(_cmd));
|
NSStringFromSelector(_cmd));
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSArray *)getSubNodeViewIds {
|
||||||
|
NSMutableArray *discardedItems = [NSMutableArray array];
|
||||||
|
|
||||||
|
NSMutableArray *allKeys = [[NSMutableArray alloc]init];
|
||||||
|
allKeys = [NSMutableArray arrayWithArray:[self.subNodes allKeys]];
|
||||||
|
for (NSString *key in allKeys) {
|
||||||
|
if ([self subNodeWithViewId:key] == nil) {
|
||||||
|
[discardedItems addObject:key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[allKeys removeObjectsInArray:discardedItems];
|
||||||
|
|
||||||
|
return allKeys;
|
||||||
|
}
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user