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

用kingfisher 第一张图加载不出来,SD_webimage却可以 #190

Open
OMP1024 opened this issue Aug 3, 2020 · 7 comments
Open

用kingfisher 第一张图加载不出来,SD_webimage却可以 #190

OMP1024 opened this issue Aug 3, 2020 · 7 comments

Comments

@OMP1024
Copy link

OMP1024 commented Aug 3, 2020

No description provided.

@OMP1024 OMP1024 changed the title 用kingfisher 第一张图加载不出来 用kingfisher 第一张图加载不出来,SD_webimage却可以 Aug 3, 2020
@terryyyyyy
Copy link

我也是,这个解决没有呢?

@JiongXing
Copy link
Owner

谢谢反馈,我看下

@chaoshenglu
Copy link

我也遇到同样的问题,麻烦尽快看看哦💐 @JiongXing

@JiongXing
Copy link
Owner

可以上传一个复现的代码我看看吗?压缩个demo工程上传

@chaoshenglu
Copy link

待会弄给你哈,稍等。 @JiongXing

@chaoshenglu
Copy link

好像是我忘记了在kf.setImage的回调中setNeedsLayout。 ̄□ ̄||
browserCell?.imageView.kf.setImage(with: URL(string: path)!, completionHandler: { _ in
browserCell?.setNeedsLayout()
})
这样写就没问题了。

@liangdahong
Copy link
Contributor

@chaoshenglu 在最新的版本也修复这个问题,不在需要使用者主动调 setNeedsLayout。

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