Created
August 16, 2012 02:32
-
-
Save sneakyness/3365835 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)addItemsOnBottom | |
{ | |
// [self.tableView reloadData]; | |
// | |
// if (items.count > 50) | |
// self.canLoadMore = NO; // signal that there won't be any more items to load | |
// else | |
// self.canLoadMore = YES; | |
NSLog(@"%@", [[streamData lastObject] objectForKey:@"post_id"]); | |
// Inform STableViewController that we have finished loading more items | |
[[ANAPICall sharedAppAPI] getGlobalStreamBeforePost:[[streamData lastObject] objectForKey:@"post_id"] withCompletionBlock:^(id dataObject, NSError *error) { | |
[streamData addObjectsFromArray:[NSArray arrayWithArray:dataObject]]; | |
[self.tableView reloadData]; | |
[self loadMoreCompleted]; | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment