出于某种原因,我在managedObjectContext =
第 9 行的部分出现错误。这是我的代码
- (void)viewDidLoad
{
[super viewDidLoad];
// Setup Patterned Background
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Textured Background.png"]];
if (managedObjectContext == nil)
{
managedObjectContext = [(ZAPAppDelegate *) [[UIApplication sharedApplication] delegate] managedObjectContext];
}
self.napkinsArray = [ZAPNapkinDrafts getNapkinDrafts:self.managedObjectContext];
}
以下是错误状态的原因:
reason=The model used to open the store is incompatible with the one used to create the store
任何帮助,将不胜感激!