2014-01-24 4 views
0

Xcode 및 Parse에 약간 익숙하며 콘센트 컬렉션에 쿼리를 만들고 있습니다.개체에 속성 텍스트가 없습니다.

[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]); 
    } 
}]; 

사람이 그렇게 나에게 내가 할 수 도울 수있다 : "속성 '텍스트'유형 'ID'의 개체를 찾을 수 없습니다"나는라는 오류를 얻고있다를 제외하고 모두가 잘 보이는 ... 여기에 내가 가진 것을 내 코드입니다 이 빌드가 실패하지 않게하려면?

답변

1

변경이 :

(UILabel *) self.EventTitles[i].text = object.objectId; 

에 :

[(UILabel *)self.EventTitles[i] setText:object.objectId]; 
관련 문제