腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(311)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
UIManagedDocument
是否处理冲突
UIManagedDocument
是否为我处理行级冲突,或者我是否需要处理这些冲突,他的回答是它确实处理行级冲突。也许我误解了他,但我看不到这一点。因此,我将问几个关键问题,希望在这里得到一些澄清,这也是
UIManagedDocument
如果我有一个具有名字和姓氏字段的表Author,如果: A)我与author有一行:'Jon Do‘-它已经同步到两个设备iCloud和
UIManagedDocument
将如何处理此问题?为了处理冲突,我是否会收到某种需要响应的通知?还是由
UIManagedDocument
为我
浏览 1
提问于2013-08-26
得票数 2
1
回答
UIManagedDocument
和CoreData
我看过今年斯坦福大学的讲座,也见过使用
UIManagedDocument
与数据库进行交互。这似乎很有趣,似乎比通常的方式容易得多。 我想用它,但我不知道怎么用.我知道怎么打开数据库等等..。是否有某种东西,因为在处理iOS的书中,他们主要不做
UIManagedDocument
?
浏览 0
提问于2013-10-08
得票数 2
回答已采纳
2
回答
UIManagedDocument
示例/教程
我一直在尝试创建一个简单的
UIManagedDocument
库风格的应用程序(将单独的文档保存到iCloud),但没有成功。我对以下几点感到困惑: 我应该子类化
UIManagedDocument
并在这个子类中设置persistentStoreCoordinator、ManagedObjectModel和ManagedObjectContext
浏览 1
修改于2012-01-22
得票数 7
1
回答
UIManagedDocument
未打开
特别是,open类的
UIManagedDocument
函数不调用其完成处理程序。 另一方面,如果文件已经存在于当前目录中,那么open函数将调用完成处理程序。
浏览 1
提问于2018-09-27
得票数 0
3
回答
UIManagedDocument
未保存
我正在使用
UIManagedDocument
管理我的数据。我创建了模型并使用它,一切似乎都正常,但是我的更改并没有被写回SQLite存储。
UIManagedDocument
的文档说自动保存应该负责将数据持久化到数据库中,但这似乎并没有发生。
浏览 0
修改于2017-05-23
得票数 7
回答已采纳
1
回答
无法打开
UIManagedDocument
进行编辑
我有一个关于上下文派生自
UIManagedDocument
的CoreData的问题。url = [url URLByAppendingPathComponent:@"Default Date Database"];
UIManagedDocument
*document = [[
UIManagedDocument
alloc] initWithFil
浏览 4
修改于2012-08-23
得票数 1
2
回答
UIManagedDocument
和核心数据
它展示了如何通过
UIManagedDocument
访问核心数据...我唯一不明白的是,
UIManagedDocument
怎么知道它应该使用哪种模型,因为我没有看到它在任何地方设置?总而言之,在使用
UIManagedDocument
时,如何定义将要使用的数据库模型?
浏览 1
修改于2013-02-06
得票数 5
回答已采纳
3
回答
UIManagedDocument
的迁移问题
在斯坦福大学上了关于使用iOS 5的新类
UIManagedDocument
的CS193P课程后,我开始在我的应用程序中使用CoreData。这就是我实例化
UIManagedDocument
对象的方式(在appDelegate中,以便每个其他类都可以使用它): url = [url URLByAppendingPathComponent:@"AppName"];
UIManagedDocument
*doc = [[
浏览 3
提问于2012-03-19
得票数 6
1
回答
iOS
UIManagedDocument
关闭
除非显式完成,否则当应用程序处于“退出”状态时,
UIManagedDocument
是唯一关闭的时间吗?我所说的退出是指当用户双击主页按钮并按住应用程序并将其关闭时。
浏览 2
修改于2013-12-10
得票数 1
1
回答
UIManagedDocument
CompletionHandler & NSNotification
我使用完成处理程序和下面的块从一个单例对象打开我的
UIManagedDocument
。
浏览 1
修改于2015-06-11
得票数 2
回答已采纳
1
回答
UIManagedDocument
和NSFetchedResultsController
我在使用
UIManagedDocument
保存实体时遇到问题。我有一个上下文设置为UIManagedDocuments上下文的NSFetchedResultsController。
浏览 0
修改于2012-01-31
得票数 2
2
回答
创建
UIManagedDocument
和初始iCloud同步
我的
UIManagedDocument
存储在沙箱中,它的更改日志在iCloud (由NSPersistentStoreUbiquitousContentURLKey指定)中。这是一个真正的问题,因为这种同步显然发生在
UIManagedDocument
:saveToURL:completionHandler内部。因此,完成处理程序块需要很长时间才能被调用,如果在
UIManagedDocument
返回之前访问我的
UIManagedDocument
:saveToURL,我可以理解。
浏览 2
提问于2012-05-18
得票数 1
1
回答
UIManagedDocument
不导入iCloud更改
当我在设备A上打开一个
UIManagedDocument
(它在一个无处不在的容器中)时,当对设备B上的文档进行更改时,这些更改不会导入到设备A上的CoreData堆栈中。但是,我希望在文档打开时,
UIManagedDocument
会自动将这些更改合并到托管对象上下文中。不是这样的吗?文档中并没有说我必须自己去做。我创建我的文档document.persistentStoreOptions = [NSMigratePersistentStoresA
浏览 6
修改于2016-05-21
得票数 0
1
回答
如何在
UIManagedDocument
中重写NSPersistentStoreCoordinator
我用下面这行代码创建数据库:我尝试了
UIManagedDocument
的子类化,并以这种方式创建它,但没有成功:
UIManagedDocument
* managedDoc = [[EncryptedManagedDocument alloc] initWithFileURL
浏览 5
提问于2014-07-04
得票数 3
1
回答
如何处理
UIManagedDocument
?
我的问题在于
UIManagedDocument
。一个简单的会计应用程序,跟踪个人对筹款活动的贡献。+ (
UIManagedDocument
*)sharedManagedDocument static
UIManagedDocument
*sharedDocument = nil;if (sharedDocument == nil) { sharedDocument = [[
UIManagedDocument
alloc] init
浏览 2
提问于2012-02-01
得票数 3
1
回答
如何同步打开/创建
UIManagedDocument
?
正如标题中提到的,我希望同步地打开
UIManagedDocument
,也就是说,我希望我的执行等待打开完成。我只在mainThread上打开文件。当前要打开的API使用块在中提到的锁使用在主线程以外的线程上工作得很好
浏览 4
修改于2014-06-17
得票数 2
2
回答
覆盖
UIManagedDocument
中的managedObjectModel
根据
UIManagedDocument
的文档,您可以覆盖-(NSManagedObjectModel*)managedObjectModel来加载特定的数据模型(缺省值是加载所有找到的数据模型合并在一起我一直在寻找一个超越managedObjectModel的
UIManagedDocument
示例,但苹果似乎没有提供这样的示例。我担心的是,这可能会破坏
UIManagedDocument
的一些内部实现,这些实现不使用managedObjectModel访问器,而是首选_managedObjectModel (这在苹果实现中很常见assigne
浏览 2
修改于2019-04-05
得票数 5
回答已采纳
1
回答
如何检查
UIManagedDocument
是否为空
打开
UIManagedDocument
实例(文档状态是否正常?)时,如何检查
UIManagedDocument
是否为空?这里的“空”表示文档中根本没有实体。
浏览 2
修改于2012-08-04
得票数 0
回答已采纳
2
回答
禁用
UIManagedDocument
中的自动保存
有什么方法可以禁用
UIManagedDocument
的自动保存吗? 我在控制器中显示NSManagedObjects,用户可以在其中添加和删除它们。
浏览 1
提问于2013-11-12
得票数 3
回答已采纳
2
回答
UIManagedDocument
不会立即更新关系的更改。
我在我的项目中使用了一个
UIManagedDocument
,并且必须改变现有对象的关系。有什么办法解决这个问题吗?
浏览 6
提问于2012-05-29
得票数 0
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券