Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LPUserCategory* userCategory = self.userCategory;
- for (NSString* categoryID in self.userCategory.categories) {
- userCategory.categories = [NSMutableArray arrayWithObject:categoryID];
- __weak LPMyJournalVC * weakSelf = self;
- [self.view makeToastActivity];
- [[LPDataManager sharedManager] requestDiaryContent:userCategory withBlockSuccess:^{
- dispatch_async(dispatch_get_main_queue(), ^{
- LPContent * diaryContent = [[LPDataManager sharedManager] getDiaryContent];
- weakSelf.articles = [diaryContent getSortedItems];
- // [self.dictionaryWithArticles setObject:articles forKey:category.label];
- // [weakSelf reloadContentArticles];
- [weakSelf.view hideToastActivity];
- });
- } withBlockFailure:^(NSError *error) {
- dispatch_async(dispatch_get_main_queue(), ^{
- [weakSelf.view hideToastActivity];
- // weakSelf.articles = nil;
- // [weakSelf reloadContentArticles];
- });
- }];
- }
- NSLog(@"%@", self.articles);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement