Update Example/Classes/Models/Post.m
Sorry the previous commit left 1 crucial line :(
This commit is contained in:
parent
3a80dbc795
commit
8f898addf2
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue