CoderMikeHe / MHDevelopExample_Objective_C

🔥🔥🔥 iOS开发技术要点汇总,核心功能配备文档。表情键盘布局、大文件分片上传、基于MVC的基类设计、MVVM+RAC实践、微信朋友圈实现方案等。
MIT License
1.05k stars 179 forks source link

下载的demo运行报错 #10

Open ZzzzyMan opened 3 years ago

ZzzzyMan commented 3 years ago

[[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)'

CoderMikeHe commented 3 years ago

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

ZzzzyMan commented 3 years ago

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

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

CoderMikeHe commented 3 years ago

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

WeJeson commented 3 years ago

谢谢!

15755061719

邮箱:15755061719@163.com |

Signature is customized by Netease Mail Master

在2020年12月10日 11:17,CoderMikeHe 写道:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

zhanglkx commented 2 years ago

[[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里面没有这个方法了

vlay1314 commented 1 year ago

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