feat:flowlayout async blend sub node

This commit is contained in:
pengfei.zhou 2019-12-10 19:57:46 +08:00
parent 0889a57a68
commit 24fb291ba8

View File

@ -249,6 +249,7 @@ - (DoricViewNode *)subNodeWithViewId:(NSString *)viewId {
} }
- (void)blendSubNode:(NSDictionary *)subModel { - (void)blendSubNode:(NSDictionary *)subModel {
dispatch_async(dispatch_get_main_queue(), ^{
NSString *viewId = subModel[@"id"]; NSString *viewId = subModel[@"id"];
DoricViewNode *viewNode = [self subNodeWithViewId:viewId]; DoricViewNode *viewNode = [self subNodeWithViewId:viewId];
if (viewNode) { if (viewNode) {
@ -267,6 +268,7 @@ - (void)blendSubNode:(NSDictionary *)subModel {
}]; }];
} }
}]; }];
});
} }
- (void)callItem:(NSUInteger)position size:(CGSize)size { - (void)callItem:(NSUInteger)position size:(CGSize)size {