A lightweight zero-config image cache for iOS, in Objective-C.
Haneke v1.0.0 is a major refactoring with improvements on all fronts and minor bug fixes.
Here's a changelog. For more info check out this blog post.
UIButton+Haneke
: UIButton category that reduces setting foreground or background images from network or disk to one line, like UIImageView+Haneke
beforehand.HNKNetwortFetcher
and HNKDiskFetcher
: classes that encapsulate fetching images from network and disk respectively, making it simpler to use Haneke from any layer of your app while also providing more extension points (e.g., HNKNetworkFetcher
can be subclassed to use a custom URL session).HNKDiskCache
: standalone disk cache for any kind of data.HNKCache
: All asynchronous fetch operations are aptly named fetch*
and accept success and failure blocks (instead of a single completion block).UIImageView+Haneke
: placeholderImage
parameter has been renamed to placeholder
for brevity.UIImageView+Haneke
: hnk_cancelImageRequest
has been renamed to hnk_cancelSetImage
.HNKErrorDiskCacheMiss
has been renamed to HNKErrorImageNotFound
.HNKCacheEntity
has been renamed to HNKFetcher
and the protocol has been changed to support asynchronous image fetching.Minor bug fixes, code refactoring and unit test improvements.
com.hpique.haneke.key
).