1

我的故事板中有一个 UIImageView,用户可以成功地从他们的手机中选择一个图像放置在 ImageView 中;但是,我不确定如何从情节提要到 Parse.com。

任何代码将不胜感激。有很多关于下载的教程,但最初没有保存。

4

1 回答 1

5

You need to take the image out of the UIImageView and sage it to a PFFile.

var file = PFFile(data: UIImageJPEGRepresentation(imageView.image, 1.0))

Then of course, you can upload the file somewhere you choose.

于 2015-04-29T14:08:40.110 回答