-3
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);
}];
}
Nesnelerden 'mensClothingType' öğesinin tümünü nasıl alabilirim ve bunları bir diziye ekleyebilirim? Bazı alakalı kodlaBu diziyi nasıl alabilirim ve bir diziye dönüşebilirim?
(
(
Shirts
),
(
Jeans
)
)
Güncelleme soru ve denedim göstermek i dizi 'nesneler'
okunan şu anda eğer ben bu olsun. Denemenizde hangi sorunu yaşadığınızı açıklayın. – rmaddy
"NSArray" yöntemine "arrayByAddingObjectsFromArray" bir göz atın. Kodunuzu gönderirseniz ve ne denediyseniz, nasıl çalışacağınızı size gösterebiliriz. –
bunu güncelledim @rmaddy – farhan