How to integrate latest SDWebImage API in my Swift based project?

前端 未结 3 461
清歌不尽
清歌不尽 2021-01-04 10:46

I have used SDWebImage with Objective C and it worked great for me but now I am learning Swift and trying to integrate the latest version of the API but I am stucking at eve

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 11:42

    swift 3.0 code

    import SDWebImage

    let url = URL.init(string:"https://vignette3.wikia.nocookie.net/zelda/images/b/b1/Link_%28SSB_3DS_%26_Wii_U%29.png")
    imagelogo.sd_setImage(with: url , placeholderImage: nil)
    

提交回复
热议问题