Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)loadFeedPosts {
- self.feedController.loading = YES;
- self.feedController.posts = self.feedPostDownloader.posts; //Зачем эта строчка?
- DKABlockCallback* block = [DKABlockCallback callbackWithSuccess:^(id data) {
- self.feedController.loading = NO;
- self.feedController.posts = self.feedPostDownloader.posts;
- self.feedController.hasMore = [self.feedPostDownloader morePostsExist];
- } withFail:^(NSError *error) {
- self.homeController.loading = NO;
- self.feedController.loading = NO;
- [[[UIAlertView alloc] initWithTitle:@"Error"
- message:error.localizedDescription
- delegate:nil
- cancelButtonTitle:@"OK"
- otherButtonTitles:nil] show];
- }];
- [self.feedPostDownloader reload:24 callback:[DKAMainThreadCallback callbackWithCallback:block]];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement