Upvote:7

Aprove answer
NSDictionary *aDic= [NSDictionary dictionaryWithObjectsAndKeys:
                              @"Carlos", @"name",
                              @"Jimenez", @"lastName", nil];

//On initialization  

NSMutableArray *aArr = [NSMutableArray arrayWithObjects:aDic,nil];

//After initialization  

NSMutableArray *aArr2 = [NSMutableArray array]; [aArr2 addObject:aDic];

Upvote:1

[self.curveList  addObject:@{@"path":_curPath, @"color":_curColor}];

Credit Goes to: stackoverflow.com

Related question with same questions but different answers