Loading/Downloading image from URL on Swift

前端 未结 30 2524
感动是毒
感动是毒 2020-11-21 05:39

I\'d like to load an image from a URL in my application, so I first tried with Objective-C and it worked, however, with Swift, I\'ve a compilation error:

30条回答
  •  日久生厌
    2020-11-21 05:50

    Use of Ascyimageview you can easy load imageurl in imageview.

    let image1Url:URL = URL(string: "(imageurl)" as String)! imageview.imageURL = image1Url

提交回复
热议问题