使用完整“组”路径访问资源文件
我在 XCode 项目中创建了组,希望可以使用完整路径来访问文件。问题是,我只能访问位于 PROJECT/Book/Book1/page1.png 中名称为“page1”的图像。但如果我现在添加一个 Book2-Group,其中还包含一个 page1.png,我想我会遇到问题。所以我想用完整路径访问它们。
这怎么可能?
感谢您提前的答复。
I've created Groups in my XCode-Project with the hope, that I can use the full Path to Access the Files. The Problem is, that I can access an image that is located in PROJECT/Book/Book1/page1.png only with the name "page1". But if I now add a Book2-Group with also an page1.png in it, I will get problem I think. So I want to access them with the Full-Path.
How is that Possible?
Thanks for your answers in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请看看这个问题,答案应该可以解决您的问题。
使用资源文件夹中的智能组,所有内容都会复制到捆绑包中的根目录,这将导致名称相同的文件发生名称冲突。
Please have a look at this question, the answer should solve your problem.
With smart groups in your resource folder everything is copied to root in the bundle, which will result in name conflicts for files which are named the same.