Magic Recording with AFIncrementalStore

I was wondering what life would look like. If I was going to combine AFIncrementalStore and Magical Record. I just don't know how to set up an incremental store as a store for magic recordings. Does anyone know how to perform such an operation?

+4
source share
1 answer

This is no different from or without MagicalRecord. This is a common master data scenario. Once you have created and registered your AFIncrementalStore, just call

-[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] 

You are reading Basic docs for this method for more information.

MagicalRecord, when you use the assembly in the stack helpers, you can use [NSPersistentStoreCoordinator MR_defaultCoordinator] to get the instance of the coordinator to which you want to attach the repository.

+5
source

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


All Articles