mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-18 09:59:46 +08:00
Image nodes call fetchData when image source is updated while in fetch range
This commit is contained in:
@@ -287,6 +287,9 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
|
||||
|
||||
_imageIdentifiers = [imageIdentifiers copy];
|
||||
OSSpinLockUnlock(&_imageIdentifiersLock);
|
||||
if (self.interfaceState & ASInterfaceStateFetchData) {
|
||||
[self fetchData];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)reloadImageIdentifierSources
|
||||
|
||||
@@ -81,9 +81,10 @@
|
||||
|
||||
if (reset || _URL == nil)
|
||||
self.image = _defaultImage;
|
||||
|
||||
if (self.nodeLoaded && self.layer.superlayer)
|
||||
[self _lazilyLoadImageIfNecessary];
|
||||
|
||||
if (self.interfaceState & ASInterfaceStateFetchData) {
|
||||
[self fetchData];
|
||||
}
|
||||
}
|
||||
|
||||
- (NSURL *)URL
|
||||
|
||||
Reference in New Issue
Block a user