上传用户profileImage的更新代码是什么,我在尝试更新用户profileImage时遇到错误。
如何解决此错误?
无法使用参数列表调用'UIImage'类型的初始化程序
输入'((@escaping()->())'
self.ProfileImage.image = UIImage{data; data!}
最佳答案
您正在使用{大括号},而您需要使用(圆括号)
myImageView.image = UIImage(data: imageData)