Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的故事板中有一个 UIImageView,用户可以成功地从他们的手机中选择一个图像放置在 ImageView 中;但是,我不确定如何从情节提要到 Parse.com。
任何代码将不胜感激。有很多关于下载的教程,但最初没有保存。
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.