diff --git a/Example/Classes/Models/Post.m b/Example/Classes/Models/Post.m index 2514a58..b76b1ef 100644 --- a/Example/Classes/Models/Post.m +++ b/Example/Classes/Models/Post.m @@ -50,7 +50,7 @@ [[AFAppDotNetAPIClient sharedClient] getPath:@"stream/0/posts/stream/global" parameters:nil success:^(AFHTTPRequestOperation *operation, id JSON) { NSArray *postsFromResponse = [JSON valueForKeyPath:@"data"]; NSMutableArray *mutablePosts = [NSMutableArray arrayWithCapacity:[postsFromResponse count]]; - for (NSDictionary *attributes in JSON) { + for (NSDictionary *attributes in postsFromResponse) { Post *post = [[Post alloc] initWithAttributes:attributes]; [mutablePosts addObject:post]; }