ios - Parse & Swift- No results matched the query -
i seem have different problem previous askers.
i trying retrieve object parse in swift, use code
var query = pfquery(classname:"gamescore") query.getobjectinbackgroundwithid("mlwvjlh7pa") { (gamescore: pfobject?, error: nserror?) -> void in if error == nil && gamescore != nil { println(gamescore) } else { println(error) } }
ignore fact left gamescore same...
anyway's here image of parse data, proof objectid exists.
http://i.stack.imgur.com/xefhh.jpg
this error in console when running simulator.
2015-07-21 11:10:39.496 parsestarterproject[959:19643] [error]: no results matched query. (code: 101, version: 1.7.5) optional(error domain=parse code=101 "no results matched query." userinfo=0x7fdeaadb1200 {error=no results matched query., nslocalizeddescription=no results matched query., code=101})
why getting error "no results matched query" when objectid indeed exist?
you have make sure "classname" property on pfquery matches class name have stored in parse. in case, seems should var query = pfquery(classname: "content")
based on picture uploaded.
Comments
Post a Comment