內(nèi)容如題,圖片瀏覽器划煮,顯示黑屏缔俄,處理方法如下:
重寫(xiě)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;
}
}