func getImageFromUrl(fileUrl: String) -> UIImage? {
let data = try? Data(contentsOf: URL(string: fileUrl)!)
let result = UIImage(data: data!)
return result
}
func getImageFromUrl(fileUrl: String) -> UIImage? {
let data = try? Data(contentsOf: URL(string: fileUrl)!)
let result = UIImage(data: data!)
return result
}
本文标题:将网络图片转成UIImage
本文链接:https://www.haomeiwen.com/subject/qghxwqtx.html
网友评论