与NSPersistentCloudKitContainer的关系持久性 [英] Relationship persistence with NSPersistentCloudKitContainer

查看:118
本文介绍了与NSPersistentCloudKitContainer的关系持久性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用NSPersistentCloudKitContainer在设备之间共享数据的应用程序.核心数据模型具有多个实体,其中两个实体通过与其各自的逆关系相互连接.我遇到的问题是,当我将关系设置为nil时,云数据未更新,并且当我重新启动应用程序时,该关系被重置为设置为nil之前的状态.

I'm working on an app that uses NSPersistentCloudKitContainer to share data between devices. The core data model has multiple entities, two of which are connected using a relationship with it's respective inverse. The issue I'm having is that when I set the relationship to nil the cloud data is not updated and when I restart the app, the relationship gets reset back what it was before it was set to nil.

这是新版NSPersistentCloudKitContainer中的错误吗?还有其他人遇到这个问题吗?

Is this a bug in the new NSPersistentCloudKitContainer? Is anyone else having this issue?

推荐答案

iOS 14似乎已经为我解决了此问题.

iOS 14 seems to have fixed this issue for me.

这篇关于与NSPersistentCloudKitContainer的关系持久性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆