iOS JMImageCache: Use Default Image
I just started using JMImageCache which is r开发者_StackOverflow社区eally nice and easy to use. There is just one issue, it doesn't support using a default image until the remote image loads.
Does anyone know how this can be done?
If imageForURL:delegate:
returns nil
, simply set your default image, which you can replace when the delegate method cache:didDownloadImage:forURL:
is called.
精彩评论