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

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -