Core Data error made from database for - is this normal?

I have a problem with this adnnotation. I downloaded several manuals, for example: http://www.raywenderlich.com/14742/core-data-on-ios-5-tutorial-how-to-work-with-relations-and-predicates and in this code example a message "fault failed" is also visible. My question is:

  • Can I create and retrieve data from Core Data without notifying me?
  • Does a critical warning trigger in Core Data?

My database looks like this: My database looks that:

And the problem arises when I want to receive data from the "FailedBankDetails" table, for example. "CloseDate".

First, I retrieve all the rows from the "FailedBankInfo" table (code above):

    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];

NSEntityDescription *entity = [NSEntityDescription
                               entityForName:@"FailedBankInfo" inManagedObjectContext:self.managedObjectContext];

NSSortDescriptor *sort = [[NSSortDescriptor alloc]
                          initWithKey:@"name" ascending:NO];

[fetchRequest setEntity:entity];

[fetchRequest setSortDescriptors:[NSArray arrayWithObject:sort]];
[fetchRequest setFetchBatchSize:20];

NSFetchedResultsController *theFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest
                                                                                              managedObjectContext:self.managedObjectContext
                                                                                                sectionNameKeyPath:nil
                                                                                                         cacheName:nil];
self.fetchedResultsController = theFetchedResultsController;
_fetchedResultsController.delegate = self;

Next, I want to display data using a table cell:

 if ([[_fetchedResultsController objectAtIndexPath:indexPath] isKindOfClass:[FailedBankInfo class]]) {
    FailedBankInfo *info = [_fetchedResultsController objectAtIndexPath:indexPath];
    cell.textLabel.text = info.name;
    cell.detailTextLabel.text = [NSString stringWithFormat:@"%@, %@", info.city, info.details.closeDate];

}

, info.details.closeDate , , , info.name .

"closeDate", "FailedBankInfo"?

, , .

:

2014-02-16 09: 05: 45.801 FailedBankCD [57158: 70b] CoreData: : , : 0x8ba2d60

+4
1

, , - ( ).

"", , . , , , "" "".

, .

+10

Source: https://habr.com/ru/post/1527164/


All Articles