内容如题,图片浏览器,显示黑屏,处理方法如下:
重写YYAnimatedImageView.m 的中的displayLayer方法
-(void)displayLayer:(CALayer *)layer {
UIImage *currentFrame = _curFrame;
if (!currentFrame) {
currentFrame = self.image;
}
if (currentFrame) {
layer.contentsScale = currentFrame.scale;
layer.contents = (__bridge id)currentFrame.CGImage;
}
}