如何從保存的PFOBject中加載NSArray值?PFObject的NSArray值
節省:
NSMutableArray *arr = [[NSMutableArray alloc]init];
for (MyParseInformation *obj in results) {
[arr addObject:obj.correct]; // correct is NSNumber
}
[pfobject addObject:arr forKey:@"results"];
}
[pfobject saveEventually:^(BOOL succeeded, NSError *error) {
查詢:
PFQuery *query = [PFQuery queryWithClassName:className];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if(!error){
for (PFObject *obj in objects) {
id str = [obj valueForKey:@"results"] ;
...... ID與計數= 1項及其內容__NSArrayM
型類是:
(
(
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
1,
1,
0,
1
)
)