I have this code:
NSDictionary *jsonGuardado = [self dictionaryFromJson:JSON];
NSLog(@"HOLA %@",jsonGuardado);
NSMutableArray *arrayCodigos = [jsonGuardado objectForKey:@"code"];
codigos = arrayCodigos;
(Codigos is an NSMutableArray)
The NSLOG return this:
HOLA (
{
code = 22051310;
},
{
code = 22051311;
},
{
code = 22051312;
},
{
code = 22051313;
}
)
But right after this, a message error says:
-[JKArray objectForKey:]: unrecognized selector sent to instance
I search this error in Google and here and all the questions I found not help me.
I'm using the JSONKit
for make the dictionaryFromJson method.