feat:iOS load Resource use NSDictionary

This commit is contained in:
pengfei.zhou
2021-11-18 19:08:33 +08:00
committed by osborn
parent e270b9c520
commit 7978900a4f
3 changed files with 13 additions and 19 deletions

View File

@@ -236,13 +236,8 @@ - (UIImage *)currentErrorImage {
- (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id)prop {
if ([@"image" isEqualToString:name]) {
NSString *type = prop[@"type"];
NSString *identifier = prop[@"identifier"];
NSString *resId = prop[@"resId"];
DoricAsyncResult <NSData *> *asyncResult = [[self.doricContext.driver.registry.loaderManager
load:resId
withIdentifier:identifier
withResourceType:type
load:prop
withContext:self.doricContext] fetchRaw];
[asyncResult setResultCallback:^(NSData *imageData) {
[self.doricContext dispatchToMainQueue:^{