iOS14 系统 YBImageBrowser显示图片黑屏问题

解决:重写YYAnimatedImageView.m 的中的displayLayer方法大概在529 行

- (void)displayLayer:(CALayer *)layer {
    UIImage *currentFrame = _curFrame;
    if (!currentFrame) {
        currentFrame = self.image;
    }
    if (currentFrame) {
        layer.contentsScale = currentFrame.scale;
        layer.contents = (__bridge id)currentFrame.CGImage;
    }
}

你可能感兴趣的:(iOS14 系统 YBImageBrowser显示图片黑屏问题)