I already have created a dynamic managed object model, but this can be used only when the application is running. How can i save programmatically this dynamic model to a .momd file like Xcode does when a .xcdatamodeld is present in the project in order to persist the model?
NSManagedObjectModel
conforms to NSCoding
. So -encodeWithCoder:
should work.
Did you try it?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.