在要解析的标签数组中上传字符串
Uploading Strings in an array of labels to parse
我有一个应用程序,上面有很多标签,指示用户选择的数字。这些数字显示在标签中。该应用程序的主要目标是将数组中的这些数字上传到 Parse。
我需要一些关于我应该走哪条路的帮助。我在考虑一组标签,但我可以上传标签的字符串吗?
请详细解释。谢谢
是的,很简单。我会调查关系。查看他们的指南 here
但是如果您希望它作为该用户的数组,您可以这样做:https://parse.com/docs/ios/guide#relations-using-an-array
Copy/Paste:
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")
非常简单。如有疑问,请查看文档。正如我所说,"Docs know it all"
我有一个应用程序,上面有很多标签,指示用户选择的数字。这些数字显示在标签中。该应用程序的主要目标是将数组中的这些数字上传到 Parse。
我需要一些关于我应该走哪条路的帮助。我在考虑一组标签,但我可以上传标签的字符串吗?
请详细解释。谢谢
是的,很简单。我会调查关系。查看他们的指南 here
但是如果您希望它作为该用户的数组,您可以这样做:https://parse.com/docs/ios/guide#relations-using-an-array
Copy/Paste:
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")
非常简单。如有疑问,请查看文档。正如我所说,"Docs know it all"