Commit be7539b7 authored by David黄金龙's avatar David黄金龙

图片展示图片优化

parent cad1683c
......@@ -109,6 +109,9 @@ extension YHActivityDetailItemView {
print("Index: \(index), Value: \(value)")
let imageV : UIImageView = UIImageView()
imageV.contentMode = .scaleAspectFill
imageV.clipsToBounds = true
if let url = URL(string: value) {
imageV.kf.setImage(with: url, placeholder: UIImage(named: "global_default_image"))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment