Load a previous model version
问题 I am loading a NSManagedObjectModel model with the initWithContentsOfURL: constructor like this: NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"MyDocument" withExtension:@"momd"]; NSManagedObjectModel *mom = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL]; However this only gives me access to the latest/current version of a model. Is it posible to load previous versions with the same momd file? how? 回答1: Actually you can load an older version with: -