TuSDKWebImageOptions Constants Reference
Declared in | UIImageView+TuSDKNetworkAdditions.h |
---|
TuSDKWebImageOptions
Definition
typedef NS_OPTIONS(NSUInteger, TuSDKWebImageOptions ) {
TuSDKWebImageUnkown = 0,
TuSDKWebImageCacheMemoryOnly = 1 < < 1,
TuSDKWebImageRefreshCached = 1 < < 2,
TuSDKWebImageAnimationDownloadedOnly = 1 < < 3,
};
Constants
TuSDKWebImageUnkown
-
位置选项
Declared In
UIImageView+TuSDKNetworkAdditions.h
. TuSDKWebImageCacheMemoryOnly
-
This flag disables on-disk caching
Declared In
UIImageView+TuSDKNetworkAdditions.h
. TuSDKWebImageRefreshCached
-
Even if the image is cached, respect the HTTP response cache control, and refresh the image from remote location if needed. The disk caching will be handled by NSURLCache instead of TuSDKWebImage leading to slight performance degradation. This option helps deal with images changing behind the same request URL, e.g. Facebook graph api profile pics. If a cached image is refreshed, the completion block is called once with the cached image and again with the final image.
Declared In
UIImageView+TuSDKNetworkAdditions.h
. TuSDKWebImageAnimationDownloadedOnly
-
下载完成时使用动画 (缓存时不使用)
Declared In
UIImageView+TuSDKNetworkAdditions.h
.