在Xcode 5中将iPhone NIB转换为iPad NIB [英] Converting an iPhone NIB to iPad NIB in Xcode 5
问题描述
我正在开发一款通用应用。
I'm working on a universal app.
这就是:将iPhone xib转换为iPad xib?
还有: Xcode 4 .xib创建iPad版本。
我是唯一一个仍无法转换的人我对iPad的笔尖?我刷新了Xcode,在尺寸下仍然只能看到Retina 3.5和Retina 4.
我甚至使用了两个SO问题脚本作为答案并且仍然保留了相同的iPhone笔尖......
Am I the only one that still doesn't manage to convert my nib to iPad? I refresh Xcode and under "size" still only see Retina 3.5 and Retina 4. I even used two of the SO questions scripts attached as answers and still remain with the same iPhone nib...
请帮忙!
推荐答案
我刚遇到同样的问题!我总是在文本编辑器中使用该答案来编辑文件,但它无法正常工作。我做了一个快速比较,新的差异似乎是这样:
I was just having this same problem! I use that answer all the time regarding editing the file in a text editor and it wasn't working. I did a quick compare and the new difference appears to be this:
targetRuntime="iOS.CocoaTouch"
它位于第二行。它需要更改为
It's on the second line. It needs to be changed to
targetRuntime="iOS.CocoaTouch.iPad"
然后您可以在Interface Builder中选择正确的大小:o)
Then you can select the right Size in Interface Builder :o)
这篇关于在Xcode 5中将iPhone NIB转换为iPad NIB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!