You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2020/10/16 06:00:01 UTC

[GitHub] [incubator-weex] Sxiaobai commented on issue #3265: [iOS] sdk 0.28.0 版本的项目在iOS 14 beta系统中运行,图片无法显示

Sxiaobai commented on issue #3265:
URL: https://github.com/apache/incubator-weex/issues/3265#issuecomment-709814842


   > Xcode Version 12.0 (12A7209) 今天升级的release版本,图片也是出不来。
   > 
   > 经过测试发现Xcode11和12在给imageview.image赋值时layer.contents表现不同。
   > 
   > WXImageComponent.m
   > 
   > * (void)updateContentImageWithFailedBlock:(void(^)(NSString *, NSError *))downloadFailedBlock方法中
   > 
   > Xcode11
   > layer.contents值不为空
   > ![image](https://user-images.githubusercontent.com/5939779/93745525-497b5e00-fc26-11ea-8f54-7240d79de9e3.png)
   > 
   > Xcode12
   > layer.contents值为空
   > ![image](https://user-images.githubusercontent.com/5939779/93745769-a5de7d80-fc26-11ea-8a38-8d0d9508a9ef.png)
   > 
   > 将`((UIImageView *)strongSelf.view).image = image;` 修改为`strongSelf.view.layer.contents = (__bridge id _Nullable)(image.CGImage);`图片即可显示
   > 
   > 详细原因探索中。。。
   
   按照你说的改了之后 第一次加载正常了,点击某个功能再次回来的时候又不行了


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org