fix:pod validation error

This commit is contained in:
pengfei.zhou 2021-07-21 20:15:10 +08:00 committed by osborn
parent c7de1f90e2
commit 73efa3b424

View File

@ -27,6 +27,7 @@
#import <DoricCore/DoricContext.h>
#import <DoricCore/DoricGroupNode.h>
#import <DoricCore/DoricRootNode.h>
#import <DoricCore/DoricSuperNode.h>
@interface DoricShowNodeTreeViewController () <RATreeViewDelegate, RATreeViewDataSource>
@property(nonatomic, weak) DoricContext *doricContext;
@ -53,7 +54,7 @@ - (void)viewDidLoad {
- (nonnull UITableViewCell *)treeView:(nonnull RATreeView *)treeView cellForItem:(nullable id)item {
DoricShowNodeTreeViewCell *cell = [treeView dequeueReusableCellWithIdentifier:@"cell"];
DoricViewNode *viewNode = (DoricViewNode *)item;
DoricViewNode *viewNode = (DoricViewNode *) item;
NSString *type = viewNode.type;
if ([item isKindOfClass:[DoricRootNode class]]) {
@ -70,7 +71,7 @@ - (nonnull UITableViewCell *)treeView:(nonnull RATreeView *)treeView cellForItem
} else if ([item isKindOfClass:[DoricSuperNode class]]) {
DoricSuperNode *superNode = item;
NSArray *viewIds = [superNode getSubNodeViewIds];
NSString *childDesc = [[@"(" stringByAppendingString:[@(viewIds.count)stringValue]] stringByAppendingString:@" Child)"];
NSString *childDesc = [[@"(" stringByAppendingString:[@(viewIds.count) stringValue]] stringByAppendingString:@" Child)"];
value = [value stringByAppendingString:childDesc];
}