XIB文件在XCode中像XML一样打开,但使用Interface Builder正确打开 [英] XIB File opens like an XML in XCode but opens correctly with Interface Builder

查看:103
本文介绍了XIB文件在XCode中像XML一样打开,但使用Interface Builder正确打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Xcode 4中双击我的文件StartWindow.xib时,它不会打开到集成的Interface Builder中;它像XML文件一样打开。我可以打开所有其他xib文件,它们按预期显示。我可以使用旧的Interface Builder通过Open with打开它。

When I double-click my file StartWindow.xib in Xcode 4, it does not open into the integrated Interface Builder; it opens like a XML file. I can open all other xib files and they display as expected. I can open it with the old Interface Builder via "Open with".

我可以用集成的Interface Builder打开它吗?

What can I do to open it with the integrated Interface Builder?

推荐答案

选择nib文件后,转到文件检查器。在标识和类型下,选择文件类型的下拉列表,然后选择最顶层的元素默认 - com.apple ....

Go to the File Inspector after selecting the nib file. Under Identity and Type, select the drop down list for File Type and choose the topmost element Default - com.apple....

这篇关于XIB文件在XCode中像XML一样打开,但使用Interface Builder正确打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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