Adding multiple resources with the same name to Xcode for iPhone

自古美人都是妖i 提交于 2020-01-01 09:58:34

问题


Is it possible to use double names for images into the resource group?

Thanks :)


回答1:


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) because no directory can contain two files with the same name

(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)



来源:https://stackoverflow.com/questions/3692352/adding-multiple-resources-with-the-same-name-to-xcode-for-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!