【发布时间】:2015-06-12 21:50:22
【问题描述】:
(我是编程新手,对 Parse 完全陌生,因此当然感谢简化的解释)
我想这很简单;我只是卡住了。我在 Parse.com 中保存了一个 PFObject,其中包含一个包含字符串的数组。我正在尝试使用 Parse 数组中的值在我的 Swift 应用程序中设置一个数组。
var query = PFQuery(className:"ParseHat")
query.getObjectInBackgroundWithId("xxxxxxxxxx")
submittedNames = query["theHat"] as [String]
// submittedNames is declared elsewhere in the code. "theHat" is the key where
the array is stored in the PFobject
我收到错误消息“PFQuery”没有名为“下标”的成员。我尝试做一些我对代码没有完全理解的事情,但遇到了其他错误,所以我只是发布这个,因为它似乎最类似于在 Parse 文档中检索对象的方法。
【问题讨论】:
标签: xcode swift parse-platform