Ios 保存到缓存后不显示图像

Ios 保存到缓存后不显示图像,ios,objective-c,sdwebimage,Ios,Objective C,Sdwebimage,我正在使用SDWebImageframework在我的应用程序中缓存图像 我已将所有URL存储在数据库中。url正确,但仅显示占位符图像 [cell.productCategoryImg sd_setImageWithURL:[NSURL URLWithString:imgStr] placeholderImage:[UIImage imageNamed:@"zamor.png"]

我正在使用
SDWebImage
framework在我的应用程序中缓存图像

我已将所有URL存储在数据库中。url正确,但仅显示占位符图像

[cell.productCategoryImg sd_setImageWithURL:[NSURL URLWithString:imgStr]
                           placeholderImage:[UIImage imageNamed:@"zamor.png"]
                                    options:SDWebImageRefreshCached];

显示用于显示图像的代码…[cell.productCategoryImg sd_setImageWithURL:[NSURL URLWithString:imgStr]占位符图像:[UIImage ImageName:@“zamor.png”]选项:SDWebImageRefreshCached];在这个imgStr中,我获取url字符串。即使它显示占位符图像..检查图像的大小。。。如果它很大,则需要时间加载…因为您正在设置选项SDWebImageRefreshCached,每次sdwebimage尝试从服务器获取更新的图像时,都会缓存您。