iosicloudicloud-apinsubiquitouskeyvaluestore

How does NSUbiquitousKeyValueStore's internal synchronization work?


For an iOS application, I'm investigating how to sync user data through iCloud. As the data is very small, I currently think of using iCloud's key-value store (NSUbiquitousKeyValueStore).

I have a few questions regarding the internal working of NSUbiquitousKeyValueStore for which I couldn't find answers in the documentation:

Hopefully someone experienced with NSUbiquitousKeyValueStore has answers to these questions!


Solution

  • Not sure what you are asking for here. When you receive this notification, the store already contains the new values it downloaded from the cloud.

    The whole value is uploaded/downloaded.

    No. The frequency of your updates is essentially what affects the moment iOS chooses to push your change. In short, it might to delay the sync if you are doing it too often.