Assuming you get a response as follows,
{
"response" : [1, 2, 3, 4, 5]
}
Then
values = [replyInfo allValues];
will put the data as follows.
values[0] = NSArray ([1, 2, 3, 4, 5])
values[1] = nil
Now, to access such data; we can do the following:
array = [values objectAtIndex:0];
What can be given as
array[0] = 1
array[1] = 2
array[2] = 3
array[3] = 4
array[4] = 5
source
share