简体   繁体   English

如何从 xcode 项目中完全删除核心数据 class?

[英]How to remove a core data class completely from an xcode project?

I have a core data class that doesn't need to be saved in core data anymore, it will be kept in memory now.我有一个核心数据 class 不再需要保存在核心数据中,它现在将保存在 memory 中。 What is the right way to delete it from xcdatamodeld and also delete the core data files associated with it?从 xcdatamodeld 中删除它并删除与之关联的核心数据文件的正确方法是什么?

Go to the.xcdatamodeld file, press on the entity you wish to delete, and just press the delete button on the keyboard. Go 到.xcdatamodeld 文件,按下您要删除的实体,然后按下键盘上的删除按钮。 This will delete all the classes that were automatically generated by XCode这将删除 XCode 自动生成的所有类

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM