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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -