版权声明:本博客内容归个人所有,如需转载,请标明出处。 https://blog.csdn.net/m0_37468171/article/details/89520074
从4.0.0更新到5.0.1部分更新内容
获取缓存的方法改变了
原版如下:
#pragma mark - Cache Info
/**
* Get the size used by the disk cache
*/
- (NSUInteger)getSize;
/**
* Get the number of images in the disk cache
*/
- (NSUInteger)getDiskCount;
/**
* Asynchronously calculate the disk cache's size.
*/
- (void)calculateSizeWithCompletionBlock:(nullable SDWebImageCalculateSizeBlock)completionBlock;
新版如下:
#pragma mark - Cache Info
/**
* Get the total bytes size of images in the disk cache
*/
- (NSUInteger)totalDiskSize;
/**
* Get the number of images in the disk cache
*/
- (NSUInteger)totalDiskCount;
/**
* Asynchronously calculate the disk cache's size.
*/
- (void)calculateSizeWithCompletionBlock:(nullable SDImageCacheCalculateSizeBlock)completionBlock;