Update Example/Classes/Models/Post.m

Sorry the previous commit left 1 crucial line :(
This commit is contained in:
ijohn 2012-10-24 13:17:16 +07:00
parent 3a80dbc795
commit 8f898addf2

View file

@ -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];
}