出于某种原因,我在第9行这里得到一个错误的managedObjectContext =
部分的代码中,我有managedObjectContext给了一个错误
- (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
任何帮助,将不胜感激!