CoderMikeHe/MHDevelopExample_Objective_C

下载的demo运行报错

ZzzzyMan opened this issue · 6 comments

[[YYCache sharedCache] objectForKey:CMHSearchFarmsHistoryCacheKey withBlock 报错
Incompatible block pointer types sending 'void (^)(NSString * _Nonnull __strong, NSArray * _Nullable __strong)' to parameter of type 'void (^ _Nullable)(NSString * _Nonnull __strong, id _Nonnull __strong)'

先百度一下,可能配置有误...

先百度一下,可能配置有误...

是yycache版本问题吗 block的参数不一样了

pod 'YYCache' , '1.0.4' 我版本都是写死的 应该不会有问题。顺道看下这个 issue 里面的解决方案,看有木有效果。
CoderMikeHe/WeChat#22

[[YYCache sharedCache] objectForKey:CMHSearchFarmsHistoryCacheKey withBlock 报错
Incompatible block pointer types sending 'void (^)(NSString * _Nonnull __strong, NSArray * _Nullable __strong)' to parameter of type 'void (^ _Nullable)(NSString * _Nonnull __strong, id _Nonnull __strong)'

先百度一下,可能配置有误...

是yycache版本问题吗 block的参数不一样了

你好,请问解决了吗?貌似现在yycache里面没有这个方法了

[[YYCache sharedCache] objectForKey:CMHExample06RemoteImageCacheKey withBlock:^(NSString * _Nonnull key, UIImage * _Nonnull object)这个方法已经不存在了,下载下来的版本无法运行。请问还在维护更新吗?