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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -