我的应用程序上有很多标签,表示用户选择的数字。这些数字显示在标签中。该应用程序的主要目标是将数组中的数字上传到Parse。
我想帮助我走哪条路。我在考虑一系列标签,但是我能上传标签的字符串吗?
请仔细解释。感谢
答案 0 :(得分:1)
非常简单。我会研究关系。请参阅他们的指南here
但如果您想将它作为该用户的数组,那么您将如何做到这一点:https://parse.com/docs/ios/guide#relations-using-an-array
复制/粘贴:
OBJ C
// let's say we have an author
PFObject *author = ...
// and let's also say we have an book
PFObject *book = ...
// add the author to the authors list for the book
[book addObject:author forKey:@"authors"];
<强> SWIFT 强>
// let's say we have an author
let author = ...
// and let's also say we have an book
let book = ...
// add the author to the authors list for the book
book.addObject(author, forKey: "authors")
非常直接。如有疑问,请查看文档。正如我的说法,“文件知道一切”