We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
LWAsyncImageView.m 更改如下
(UIImage )image { UIImage image = nil;
if (self.gifImage) { //如果是gif动画,这里从去当前帧的UIImage对象,当displayLink计时器触发时,会调用 //“- (void)displayLayer:(CALayer *)layer ”方法。通过设置Layer的contents完成动画的播放 image = self.gifCurrentFrame; } // else { // CGImageRef imageRef = (__bridge CGImageRef)(self.layer.contents); // image = [UIImage imageWithCGImage:imageRef]; // } return image; }
//- (void)setImage:(UIImage *)image { // //清除image // // if (!image) { // if (self.image) { // CGImageRef imageRef = (__bridge_retained CGImageRef)(self.layer.contents); // id contents = self.layer.contents; // self.layer.contents = nil; // if (imageRef) { // dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{ // [contents class]; // CFRelease(imageRef); // }); // } // } // // } else { // if (self.displayAsynchronously) { // [self.layer.lw_asyncTransaction addAsyncOperationWithTarget:self.layer // selector:@selector(setContents:) // object:(__bridge id _Nullable)image.CGImage // completion:nil]; // } // else { // [self.layer setContents:(__bridge id _Nullable)image.CGImage]; // } // } // // // //}
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: