for(Attribute* attribute in appDelegate.attributeArray) { attribute = [appDelegate.attributeArray objectAtIndex:z]; attri = attribute.zName; int y = 0; for(Row* r in appDelegate.elementsArray) { r = [appDelegate.elementsArray objectAtIndex:y]; NSString *ele = r.language; if([attri isEqualToString:ele]) { NSLog(@"=================+++++++++++++++++%@ %@",attri, r.user); [aaa insertObject:r atIndex:y];
in one array and the value in another array, and the array of values ββin the object format.
I need to save a multi-object for one key. attributeArray
is the key value, and elementsArray
is the object. For example, an Array attribute may have values
" English, French, German..."
and elementArray can have an object value
"<Row: 0x4b29d40>, <Row: 0x4b497a0>, <Row: 0x4e38940>, <Row: 0x4b2a070>, <Row: 0x4b29ab0>, <Row: 0x4b178a0> "
In the first value, I need to save two objects, and for the second key I need to save 3 objects, and for the third key I need to save the last two objects in the dictionary.
source share