Unless I'm mistaken, upon first usage of a line such as: [[AsyncImageLoader sharedLoader] loadImageWithURL: someURLHere], it works the first time and AsyncImageLoadDidFinish or AsyncImageLoadDidFail are posted. However, when trying a second time, if the image is already in the cache, then the method returns without posting any notifications.
I did a quick fix by adding following notification post after the success check:
Unless I'm mistaken, upon first usage of a line such as: [[AsyncImageLoader sharedLoader] loadImageWithURL: someURLHere], it works the first time and AsyncImageLoadDidFinish or AsyncImageLoadDidFail are posted. However, when trying a second time, if the image is already in the cache, then the method returns without posting any notifications.
I did a quick fix by adding following notification post after the success check:
This seems to do the trick for me and was wondering if this is an issue or am I misunderstanding the AsyncImageLoader usage. Thanks.