I have converted an NSArray to NSString using below code Suppose i have an array with some data in it.
NSString *sample=[array description];
NSLog(@"%@",sample);
which prints:
(
{
URL = "1a516af1a1c6020260a876231955e576202bbe03.jpg##37911944cc1ea8fd132ee9421a7b3af326afcc19.jpg";
userId = 0;
wallpaperId = 31;
},
{
URL = "a9356863fa43bc3439487198283321622f88e31f.jpg##f09c743ebdc26bb9f98655310a0529b65a472428.jpg";
userId = 0;
wallpaperId = 30;
}
)
It looks like array but it is actually a string. Now I am wondering, how can I reconvert back to NSArray? Help appreciated.
And please this not a duplicate question, I couldn't found the same anywhere on SO.