I have been searching around for information about use of NSOrderedSet with iCloud as my app uses this extensively.

I want to use iCloud as the backup mechanism for my core data app but am getting 'hints' looking around that this mechanism cannot be used with iCloud, but cannot find anything concrete to verify this.

Is this true, even with iOS7?

Thanks

有帮助吗?

解决方案 2

It's still stated in the iCloud Core Data Programming Guide that it's not supported:

enter image description here

其他提示

As far as I know, it is still not supported in iCloud. It wouldn't surprise me if they don't do it at all. It's been 3 years now.

I recently added ordered relationships to Ensembles, which is a sync framework for Core Data, and can also work with iCloud. To get it to work, we had to store all the indexes and object identities, every time the relationship was modified. It works, but it does result in more data than you would like. That's perhaps why Apple hasn't done it.

You can order relationships yourself, using integer or float parameters. Be careful with floats that you don't hit the machine precision. (e.g. Dividing by 2 each time can reach this limit with relatively few insertions)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top