有什麼辦法從具有PFFile指針(照片)的類中獲取數據?Parse.com includeKey和PFFile
let query = PFObject(classname: "Person")
query.includeKey("photo")
[Error]: field photo cannot be included because it is not a pointer to another object
因此,在完成第一個請求後,我不必再向parse.com請求另一個請求嗎?
是的,includeKey的目的是你也下載指針列,所以它應該工作。你確定「照片」列是指針列嗎?或拼寫錯誤的名字? – 2015-01-04 14:47:58
是的,我確定,這是我現在所做的一個例子:https://gist.github.com/ivangodfather/3084b374366f6624ee5c – Godfather 2015-01-04 15:09:36
http://www.ruiznadal.com/screenshots/usertable.png < - 實際PFUser表 – Godfather 2015-01-04 15:11:29