add view id display
This commit is contained in:
		
										
											
												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; | ||||||
|  |  | ||||||
|  | - (NSArray *)getSubNodeViewIds; | ||||||
| @end | @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