0
У меня есть UIImage
(получен из параметра Parse - convert variable PFFile
). Как сохранить и загрузить изображение из этой переменной?Как сохранить и загрузить изображение файла с помощью swift
let a = object["image"] as! PFFile
a.getDataInBackgroundWithBlock({ (data:NSData?, error:NSError?) -> Void in
if (error == nil) {
// I have image, but the next I don't know what I do
let image = UIImage(data:data!)
}
})