Image nodes call fetchData when image source is updated while in fetch range

This commit is contained in:
Adlai Holler
2015-11-29 17:29:44 -08:00
parent ee7e311631
commit dfc7c0cc0e
2 changed files with 7 additions and 3 deletions

View File

@@ -287,6 +287,9 @@ typedef void(^ASMultiplexImageLoadCompletionBlock)(UIImage *image, id imageIdent
_imageIdentifiers = [imageIdentifiers copy];
OSSpinLockUnlock(&_imageIdentifiersLock);
if (self.interfaceState & ASInterfaceStateFetchData) {
[self fetchData];
}
}
- (void)reloadImageIdentifierSources

View File

@@ -82,8 +82,9 @@
if (reset || _URL == nil)
self.image = _defaultImage;
if (self.nodeLoaded && self.layer.superlayer)
[self _lazilyLoadImageIfNecessary];
if (self.interfaceState & ASInterfaceStateFetchData) {
[self fetchData];
}
}
- (NSURL *)URL