创建新的“空应用程序”时,没有.xib文件。在XCode中 [英] There is no .xib file when I create a new "Empty Application" in XCode

查看:76
本文介绍了创建新的“空应用程序”时,没有.xib文件。在XCode中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 4.2版进行iOS编程的Big Nerd Ranch指南(第2版)。

I am working through the Big Nerd Ranch Guide (2nd Ed) for iOS Programming using Xcode version 4.2.

对于我要求创建的第一个项目一个新项目,它是一个基于窗口的应用程序,其描述为此模板为任何应用程序提供了一个起点。它只提供了一个应用程序委托和一个窗口。我在XCode 4.2中无法使用基于窗口的应用程序选项,但我确实看到了创建新空应用程序的选项,该选项具有相同的描述(此模板为任何应用程序提供了一个起点。它提供了应用程序委托和窗口)

For the very first project I'm asked to create a new project which is a "Window-based Application" the description for which reads "This template provides a starting point for any application. It provides just an application delegate and a window". The "Window-based Application" option was not available to me in XCode 4.2 but I did see the option to create a "New Empty Application" which has the same description ("This template provides a starting point for any application. It provides just an application delegate and a window")

当我创建项目时,我应该有一个MainWindow.xib文件,但在我的项目中根本没有显示?请帮助

When I create the project I'm supposed to have a MainWindow.xib file but that does not show up at all in my project? Help please

推荐答案

创建项目时,不要忘记取消选中storyboard选项。取消选中后,您可以看到xib文件。

When you create the project, don't forget to uncheck the option "storyboard". Once you uncheck it, you can see the xib files.

这篇关于创建新的“空应用程序”时,没有.xib文件。在XCode中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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