我在控制台中收到一个未填充的 UIImageView
错误
"Object images does not exist."
代码如下:
// download image
let gsReference = Storage.storage().reference(forURL: "gs://myaddress.appspot.com/post-pics/")
let imageStorageRef = storageRef.child("images/")
imageStorageRef.getData(maxSize: 2 * 1024 * 1024) { data, error in
if let error = error {
print("******** \(error)")
} else {
let image = UIImage(data: data!)
}
}
您对下载的引用不正确。 检查您当前的 StorageRef url 路径,或 ImageStorageRef。确保它是这样的:
let gsReference = Storage.storage().reference().child(auth.auth().currentUser.uid).child("post-pics")
关于ios - FIRStorageErrorDomain 代码=-13010,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50110374/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://jike.in/) | Powered by Discuz! X3.4 |