有没有办法在 Xcode 的 resources 文件夹中创建子文件夹?

发布于 2024-08-20 05:02:18 字数 158 浏览 6 评论 0原文

这可能是一个过于简单的问题,但我是使用 Xcode 为 iPhone 编程的初学者。我的项目使用了很多 UIImageView 动画数组的图片文件。我将所有图片添加到我的资源文件中,但资源文件夹变得有点笨拙。有没有一种方法可以在资源中添加子文件夹,而不会更改或弄乱我已经创建的任何代码?感谢您抽出时间。

This might be an overly simple question, but I am a beginner at programming for the iPhone with Xcode. My project uses a lot of picture files for UIImageView animation arrays. I add all of the pictures into my resource file but the resources folder is getting a bit unwieldy. Is there a way to add subfolders in resources that do not change or mess up any of the code that I have already created? Thank you for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

栖迟 2024-08-27 05:02:18

您可以在 Xcode 管理器中选择一组文件,右键单击它们,然后从上下文弹出菜单中选择“组”。这将创建一个包含它们的子文件夹。该子文件夹仅供组织使用,不会存在于您的 .app 中。

You can select a group of files in the Xcode organizer, right click on them, and choose "Group" from the contextual popup menu. This will create a subfolder containing them. This subfolder is organizational only, and will not exist in your .app.

掩饰不了的爱 2024-08-27 05:02:18

右键单击并选择添加>新集团。

Right click and select Add > New Group.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文