XCode:放置图像资源的位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8371315/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:39:42  来源:igfitidea点击:

XCode: Where to put image resources

iosxcodecocoa-touch

提问by dhrm

I'm trying to add some App Iconsand Launch Imagesfor my App. My code-files are organized in groups inside Xcode and the same in the File System. I tried to drag a folder named Resourceswith my PNG images into my App and afterwards trying to add them as the App Iconsand Launch Imagesfor my App, but Xcode then gave me an warning and copied the file to the root of my project -- both in Xcode and File System.

我正在尝试为我的应用添加一些App IconsLaunch Images。我的代码文件在 Xcode 中按组组织,在文件系统中也是如此。我试图将一个以Resources我的 PNG 图像命名的文件夹拖到我的应用程序中,然后尝试将它们添加为我的应用程序的App IconsLaunch Images,但是 Xcode 给了我一个警告并将文件复制到我的项目的根目录 - 在 Xcode 和文件系统。

Is it normal, that the Image are put in the root (in same level as the xcodeproj file)?

将图像放在根目录中(与 xcodeproj 文件处于同一级别)是否正常?

采纳答案by Uko

Yes it's OK. What can I suggest you is not to worry about filesystem and organize your files/directories within the project.

好的,可以。我建议您不要担心文件系统并在项目中组织您的文件/目录。

It's same as with iTunes: you don't care what and where your files are, but you have a nice interface to work with them.

它与 iTunes 相同:您不关心文件的内容和位置,但您有一个很好的界面来处理它们。