Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载的demo运行报错 #10

Open
ZzzzyMan opened this issue Dec 10, 2020 · 6 comments
Open

下载的demo运行报错 #10

ZzzzyMan opened this issue Dec 10, 2020 · 6 comments

Comments

@ZzzzyMan
Copy link

[[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
Copy link
Owner

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

@ZzzzyMan
Copy link
Author

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

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

@CoderMikeHe
Copy link
Owner

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

@WeJeson
Copy link

WeJeson commented Dec 10, 2020 via email

@zhanglkx
Copy link

[[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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants