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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -