I have JSON on my server that is parsed in an iOS application for NSDictionary. NSDictionary is as follows:
( { text = Aaa; title = 1; }, { text = Bbb; title = 2; } )
My question is: how to get only text from the first dimension, so it should be "Aaa". I tried using this:
[[[json allValues]objectAtIndex:0]objectAtIndex:0];
But it didnβt work, it ends in an error
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFArray allValues]: unrecognized selector sent to instance 0x714a050'
So can you help me how to get only one value from a given index? Thanks!
source share