weex 项目在iOS 14系统中运行,图片无法显示

2020-10-16  本文已影响0人  Sxiaobai

weex sdk 0.28.0 版本的项目在iOS 14系统中运行,图片无法显示

针对iOS14系统,即Xcode12运行后,图片不显示的解决方法:
WXLayer.m中添加如下代码即可


@implementation WXLayer

- (void)display
{
    if (@available(iOS 14.0, *)) {
        [super display];
    }
    
    [self.wx_component _willDisplayLayer:self];
}

@end
上一篇 下一篇

猜你喜欢

热点阅读