【发布时间】:2015-06-01 16:12:17
【问题描述】:
这是我的查询:
//The column 'facebookId' has a String type
//The ACL for the table 'User' are set to Public Read
let predicate = NSPredicate(format: "facebookId = '846810882066568'")
var query = PFQuery(className: "User", predicate: predicate)
query.findObjectsInBackgroundWithBlock {
(result: [AnyObject]?, error: NSError?) -> Void in
if error == nil {
if let objects = result {
println(objects)
}
}
}
我正在查询的行存在,但返回的结果是一个空数组:
[]
我做错了什么?
【问题讨论】:
-
这是解析用户还是自定义用户类?
-
我添加了一些列的解析器
标签: ios objective-c swift parse-platform nspredicate