UNICORN - iOS
プロパティ | 全メンバ一覧
<HNKCacheEntity> プロトコル

#import <HNKCache.h>

<HNKCacheEntity> の継承関係図
HNKImageViewEntity

プロパティ

NSString * cacheKey
 
UIImage * cacheOriginalImage
 
NSData * cacheOriginalData
 

詳解

Represents an object that is associated with an image. Used by the cache to assign identifiers to images and obtain the original data or image needed to create resized images.

プロパティ詳解

- (NSString*) cacheKey
readnonatomicassign

Return a key for the original image associated with the entity. If two different entities have the same image, they should return the same key for better performance.

- (NSData*) cacheOriginalData
readnonatomicassign

Return the original data associated with the entity. The cache will always call this method in the main queue.

- (UIImage*) cacheOriginalImage
readoptionalnonatomicassign

Return the original image associated with the entity, or nil to use cacheOriginalData instead. The cache will always call this method in the main queue.

警告
If the entity doesn't implement this method it must implement cacheOriginalData.

このプロトコル詳解は次のファイルから抽出されました: