English 中文(简体)
Xcode 4换算成世界——资源分离?
原标题:Xcode 4 converting to Universal - separation of resources?

根据关于这一主题的其他思路,当你从目标装置中选择通用装置时,它就应当建立一个资源组合。 另外,我读到,你可以重复现有的目标,选择向iPad过渡或向世界过渡。

然而,这些行为对我都没有发生。 我可以把它定为普遍性,但既然只有一个目标,那么你如何区分哪些资源是用于“iP”版,哪些是用于“iPad”?

此外,在每一版本的发射图像和信号的位置上,你是如何分开的?

为了使情况更加糟糕,我决定删除并重提目标,然后尝试过渡。 但是,现在我没有任何资源或班子允许我完全遵守这一新目标,因此我甚至可以管理该项目。

UPDATE: I created a new project and moved all my classes and resources into it, made the target universal and at least it is running on both. However, it is not clear to me how to have the app load one image file resource for iphone and a different one for iPad. The Apple documentation says to append "-iphone" to a file name for resources that are for iphone runtime, but this is not proving to be successful.

最佳回答

我在普及传言过程中,并自你提到主持人以来:

iPads(ands)档案系统对案件敏感。 因此,你需要使用“MyImage~ipad.png”,而不是“MyImage~iPad.png”(这是我的第一个倾向)。

除此之外,它完全是自动的。 大部分(如果不是全部)资源(xibs, .pngs, 等)都装载了没有编码改动的单Pad特定版本。

问题回答

暂无回答




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签