I have this string a:10,b:xx,e:20,m:xy,w:30,z:50
But, the keys and the value change...
I want to convert it to a structure in objective-c (I want the app to convert the string to structure automatically, not manually)
In PHP the result will be:
$array = array( 'a' => 10, // or 'a' => "10" (doesn't matter) 'b' => "xx", 'e' => 20, // or 'e' => "20" (doesn't matter) 'm' => "xy", 'w' => 30, // or 'w' => "30" (doesn't matter) 'z' => 50 // or 'z' => "50" (doesn't matter) ); So, how can I convert that string to structure and get the result like in the PHP example but to do it in objective-c... ?
Please show me the exact code, I'm new to objective-c :)
Thank you