本文介绍了为Xcode for iPhone添加多个具有相同名称的资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将图像的双重名称用于资源组?
Is it possible to use double names for images into the resource group?
谢谢:)
推荐答案
只要(1)它们不在同一目录中,您就可以拥有多个具有相同名称的资源,以及(2)您已通过引用将资源添加到Xcode项目中。
You can have multiple resources with the same name as long as (1) they are not in the same directory, and (2) You've added the resources to your Xcode project by reference.
(1)因为没有目录可以包含两个同名的文件
(1) because no directory can contain two files with the same name
(2)因为Xcode尊重通过引用添加的目录的目录结构(如果将其直接添加到项目中,Xcode将所有内容都放入应用程序包的根级别)
(2) because Xcode respects directory structures for directories added by reference (if you add it directly to the project, Xcode tosses everything into the root level of the application bundle)
这篇关于为Xcode for iPhone添加多个具有相同名称的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!