iOS应用程序中的子目录 [英] Subdirectories within an iOS application

查看:87
本文介绍了iOS应用程序中的子目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 .app 中包含目录?

Is there a way to have directories within an .app?

目前,如果我添加一个文件放入 Xcode ,无论它处于哪个组层次结构中,该文件始终位于我的应用程序捆绑包内的平面文件系统中。

At the moment if I add a file into Xcode, regardless of what Group hierarchy it is in, the file always lands in a flat filesystem within my application bundle.

推荐答案

如果您只想将现有文件复制到应用程序捆绑包的Res​​ources文件夹(iPhone上仅位于.app捆绑包的内部)中,请执行以下操作:

If you just want to copy existing files into your application bundle's Resources folder (which on iPhone is just the inside of the .app bundle), do the following:


  • 将要复制的文件夹拖到xcode项目的文件和文件夹列表中。

  • 从工作表中弹出询问您是否要将文件添加到目标,将单选按钮更改为为任何添加的文件夹创建文件夹引用。

您拖入的文件夹及其所有内容将在构建期间逐字复制。

The folder you dragged in and all of its contents will be copied verbatim during building.

这篇关于iOS应用程序中的子目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆