0
我對Xcode和Parse有點新,並且正在Out集合中創建一個查詢。除了我得到一個錯誤,指出「財產‘文’不是類型‘ID’的對象中找到」一切都看起來不錯......這是我的代碼,我有:在對象上找不到屬性文本
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if (!error) {
// The find succeeded.
NSLog(@"Successfully retrieved %d scores.", objects.count);
// Do something with the found objects
int i = 0;
for (PFObject *object in objects) {
if (i >= [self.EventTitles count]) break;//to make sure we only write up to the max number of UILabels available in EventTitles
(UILabel *) self.EventTitles[i].text = object.objectId;//I assume the "objectId" property of object is an NSString!
i++;
}
} else {
// Log details of the failure
NSLog(@"Error: %@ %@", error, [error userInfo]);
}
}];
誰能幫助我,所以我可以讓這個構建不會失敗?