我怎样才能把这个数组放到一个数组中?

时间:2016-04-10 22:03:36

标签: ios objective-c arrays

PFQuery *query = [PFQuery queryWithClassName:@"Category"];
    // Retrieve the object by id
    [query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) {
        // Now let's update it with some new data. In this case, only cheatMode and score
        // will get sent to the cloud. playerName hasn't changed.
//        NSLog(@"%@",[objects objectAtIndex:1]);
//        NSLog(@"%@",[objects valueForKey:@"mensClothingType"]);
        NSArray * result = [[objects valueForKey:@"mensClothingType"] componentsJoinedByString:@""];
        NSLog(@"%@",result);
   }];
}

我怎样才能获得所有' mensClo​​thingType'从对象并将其放入一个数组?目前,如果我读出阵列'对象'

我明白了:

 (
        (
        Shirts
    ),
        (
        Jeans
    )
)

0 个答案:

没有答案