【发布时间】:2019-06-16 13:33:54
【问题描述】:
我想使用 SDWebImage 设置 UIButton 背景图片。
代码:-
[btn.imageView setImageWithURL:[NSURL URLWithString:@"image url here"]
placeholderImage:[UIImage imageNamed:@"placeholder"]];
谢谢
【问题讨论】:
-
我并没有真正关注这个,抱歉。您尝试过什么?尝试后会发生什么?
-
@Robert hi 在 uiimageview 中设置了相同的图像,但在 uibutton 中它没有设置我正在使用这种方法github.com/rs/SDWebImage/blob/master/SDWebImage/…
-
@Robert 并使用此链接github.com/rs/SDWebImage/issues/117
标签: ios sdwebimage