nsstring - how to convert array which is a dictionary objective-c -
my array
{ cash = 860; flat = 157; propertyname = "four seasons"; }, { cash = 540; flat = 156; propertyname = "four seasons"; }, { cash = 560; flat = 155; propertyname = "four seasons"; }
how convert array dictionary same strings in array dictionary
{ cash1 = 860; cash2 = 540; cash3 = 560; flat1 = 157; flat2 = 156; flat3 = 155; propertyname = "four seasons"; }, ...
this might out.
fyi simpler...
nsmutabledictionary *result = [[nsmutabledictionary alloc]init]; (nsdictionary *dict in yourarray) { [result addentriesfromdictionary:dict]; }
Comments
Post a Comment