使用轻量级迁移更改核心数据实体名称? [英] Change Core Data entity name with Lightweight migration?

查看:121
本文介绍了使用轻量级迁移更改核心数据实体名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有方法可以在iOS上使用自动轻量级迁移来更改Core Data实体名称?

Is there a way to change the name of a Core Data entity name while still using "Automatic Lightweight Migration" on iOS?

推荐答案

在目标模型中,将重命名标识符设置为源模型中实体的名称。

In the destination model, set the renaming identifier to the name of the entity in the source model.

在Xcode 3中,重命名标识符位于用户信息

In Xcode 3, the renaming identifier is in the User Info pane of the Detail Pane, below the version hash modifier.

在Xcode 4中,它位于版本控制之下的右侧(实用程序)。

In Xcode 4, it's in the right hand (Utilities) below Versioning.

这篇关于使用轻量级迁移更改核心数据实体名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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