简体   繁体   中英

Core data + iCloud: exclude certain attributes from sync?

I am trying to implement core data sync using iCloud. However, there is one attribute that I don't want to sync. Is there a proper way to tell iCloud to sync most managed objects and attributes, but not others?

Right now, Core Data + iCloud does not support this kind of configuration. You may have to split your Data into two Persistent Stores (lokal, cloud).

One workaround would be to add the things you do not wish to sync to an entity that includes a unique device identifier.

In this way, they still get synced, but you can use just the data pertinent to the specific device and ignore the data from other devices.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM