feat:add iOS listview

This commit is contained in:
pengfei.zhou
2019-11-15 19:30:07 +08:00
parent 6017e7120d
commit 8e53e4b54b
11 changed files with 230 additions and 15 deletions

View File

@@ -193,7 +193,7 @@ - (void)onClick:(UIView *)view {
return [[ret reverseObjectEnumerator] allObjects];
}
- (void)callJSResponse:(NSString *)funcId, ... {
- (DoricAsyncResult *)callJSResponse:(NSString *)funcId, ... {
NSMutableArray *array = [[NSMutableArray alloc] init];
[array addObject:self.idList];
[array addObject:funcId];
@@ -203,11 +203,12 @@ - (void)callJSResponse:(NSString *)funcId, ... {
while ((arg = va_arg(args, id)) != nil) {
[array addObject:arg];
}
[self.doricContext callEntity:DORIC_ENTITY_RESPONSE withArgumentsArray:array];
DoricAsyncResult *ret = [self.doricContext callEntity:DORIC_ENTITY_RESPONSE withArgumentsArray:array];
va_end(args);
return ret;
}
+ (DoricViewNode *)create:(DoricContext *)context withType:(NSString *)type {
+ (__kindof DoricViewNode *)create:(DoricContext *)context withType:(NSString *)type {
DoricRegistry *registry = context.driver.registry;
Class clz = [registry acquireViewNode:type];
return [(DoricViewNode *) [clz alloc] initWithContext:context];