how to load image from local path ios swift (by path)

后端 未结 8 1628
长情又很酷
长情又很酷 2020-12-04 20:02

In my app I am storing an image in local storage and I am saving the path of that image in my database. How can I load the image from that path?

Here is the code I a

8条回答
  •  离开以前
    2020-12-04 20:49

    1.cell.image.sd_setShowActivityIndicatorView(true)

    2.cell.image.sd_setIndicatorStyle(.gray)

    3.cell.image.image = UIImage(contentsOfFile: urlString!)

提交回复
热议问题