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类,您将为每个类做两个单独的查询..所以做这个完全相同的代码为您的可比照片类。 –
谢谢......我仍然很困惑,我是新来的斯威夫特:/ –