xcode 我应该将启动图像“Default.png”放在我的 iPhone 应用程序的项目目录中的什么位置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2797905/
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
Where do I place the launch image "Default.png" in my iPhone app's project directory?
提问by BeachRunnerFred
In the Apple documentation, it says...
在 Apple 文档中,它说...
iPhone OS looks for a Default.png file, located in the top level of the application bundle.
iPhone OS 会查找位于应用程序包顶层的 Default.png 文件。
but I'm having a hard time figuring out how to get the image in that location in the bundle (I'm new to all this). I'm assuming my image will end up in the right place in the bundle when I compile it so long as I add it to the project correctly and place it in the right location in the project directory. My questions are...
但我很难弄清楚如何在捆绑包中的那个位置获取图像(我对这一切都不熟悉)。我假设我的图像在编译时最终会出现在包中的正确位置,只要我将其正确添加到项目中并将其放置在项目目录中的正确位置。我的问题是...
- Where in my project directory should I place the "Default.png" image?
- Do I need add it to the project through Xcode? If so, how?
- 我应该在我的项目目录中的哪个位置放置“Default.png”图像?
- 我需要通过 Xcode 将它添加到项目中吗?如果是这样,如何?
Thanks so much in advance for all your help! I'm going to continue researching this question right now.
非常感谢您的帮助!我现在将继续研究这个问题。
回答by zoul
Just add it to the Resources group in Xcode. It will end up in the root of the app bundle.
只需将其添加到 Xcode 的 Resources 组中即可。它将最终位于应用程序包的根目录中。