I'm using afnetworking to fetch my json files on the server.
[manager GET:@"http://pathtojson.com/iPhone/test.json" parameters:nil success:^(AFHTTPRequestOperation *operation, NSArray * responseObject) {
NSDictionary *test = (NSDictionary *)responseObject;
NSLog(@"%@", test[@"url"]);}
My json file is like this :
{ "images" : {
"items" :
[{"url" : "myurl.com", "title" :"Night drops"}, {"url" : "myurl2.com","title" : "Test 2 colors"}]
}
}
And what I am trying to do is to get the url and the title in an array in order to use it. When I print the entry url the answer is null.
How can I do to get the 2 entries ?
thank you guys !