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/09/24 15:03:13 UTC
[GitHub] [incubator-weex] xztl commented on issue #3265: [iOS] sdk 0.28.0 版本的项目在iOS 14 beta系统中运行,图片无法显示
xztl commented on issue #3265:
URL: https://github.com/apache/incubator-weex/issues/3265#issuecomment-698402884
> `原因可能是在iOS14中,如果自定义了imageView的layer渲染,需要手动设置layer.contents,不会在设置了image后进行同步contents`
>
> 
>
> `在weex中,imageView组件除非设置了compositing,才进入layer层并重新渲染,否则仍旧以image为主`
>
> 
>
> `我的临时方案是设置image后主动同步layer.contents`
>
> 
>
> ` if (image) { self.layer.contents = (id)image.CGImage; } else { self.layer.contents = nil; }`
测试iOS12.4.8 会出现部分加载不显示
----------------------------------------------------------------
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