1
我的班級中有一個名爲「Parent」的指針,「ComparablePhotos」指向另一個班級「NewLog」。我試圖從Parent指向的NewLog中的行獲取數據(Address,ObjectId,Lat)。我如何使用query1.includeKey提供?從Parse(ios)中的指針行獲取數據
代碼:
var query1 = PFQuery(className: "ComparablePhotos")
query1.includeKey("Parent")
//get NewLog[address], NewLog[lat], and NewLog[objectId] using "Parent" pointer
ComparablePhotos類:
NewLog類:
我想你的第一個代碼,它返回nil ...不返回從NewLog類東西。 –
我編輯它,以便它會查詢您的NewLog類,您將爲每個類做兩個單獨的查詢..所以做這個完全相同的代碼爲您的可比照片類。 –
謝謝......我仍然很困惑,我是新來的斯威夫特:/ –