mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-06-19 17:43:23 +08:00
PINRemoteImage 2.0 moved its tag, who the hell are these idiots. -signed, author of PINRemoteImage
This commit is contained in:
@@ -67,13 +67,13 @@
|
||||
ASDisplayNodeAssert([downloadIdentifier isKindOfClass:[NSUUID class]], @"downloadIdentifier must be NSUUID");
|
||||
|
||||
if (progressBlock) {
|
||||
[[PINRemoteImageManager sharedImageManager] setProgressCallback:^(PINRemoteImageManagerResult * _Nonnull result) {
|
||||
[[PINRemoteImageManager sharedImageManager] setProgressImageCallback:^(PINRemoteImageManagerResult * _Nonnull result) {
|
||||
dispatch_async(callbackQueue, ^{
|
||||
progressBlock(result.image, result.UUID);
|
||||
});
|
||||
} ofTaskWithUUID:downloadIdentifier];
|
||||
} else {
|
||||
[[PINRemoteImageManager sharedImageManager] setProgressCallback:nil ofTaskWithUUID:downloadIdentifier];
|
||||
[[PINRemoteImageManager sharedImageManager] setProgressImageCallback:nil ofTaskWithUUID:downloadIdentifier];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user