简体   繁体   English

Xcode 4.2.1 ios中没有MainWindow.xib空项目

[英]no MainWindow.xib in Xcode 4.2.1 ios empty project

I've started to learn IOS programming using Big Nerd Ranch Guide. 我已经开始使用Big Nerd Ranch Guide学习IOS编程。 (SE) I've downloaded and istalled xcode 4.2.1 (SE)我已经下载并安装了xcode 4.2.1

Now the first basic code work have this text 现在,第一个基本代码工作已包含以下文本

In the project navigator, find a file named MainWindow.xib. This file contains the interface for your Quiz application. Click on MainWindow.xib to open it in the editor area.

But there is no MainWindow.xib 但是没有MainWindow.xib

Because There is no more Window based application type when u start the project. 因为启动项目时不再有基于Windows的应用程序类型。 Instead of that I had to choose empty project. 取而代之的是,我不得不选择空项目。

What is the easiest way to get MainWindow.xib in my project and continue with it ? 在我的项目中获取MainWindow.xib并继续进行操作的最简单方法是什么?

Cause I've read this blog http://www.makebetterthings.com/iphone/where-is-mainwindow-xib-in-xcode-4-2/ 因为我已经阅读了该博客http://www.makebetterthings.com/iphone/where-is-mainwindow-xib-in-xcode-4-2/

And I don't like the way it's done. 我不喜欢这样做的方式。 IS there more gentle , normal way of getting MainWindow.xib??? 是否有更温和,正常的获取MainWindow.xib的方式???

If you are using Snow Leopard (10.6), you can install Xcode 3 and MainWindow.xib gets created with all the templates there. 如果您使用的是Snow Leopard(10.6),则可以安装Xcode 3,并使用其中的所有模板创建MainWindow.xib。

I also believe many of the example apps from Big Nerd Ranch are available online . 我也相信Big Nerd Ranch的许多示例应用程序都可以在线获得 So you can download the sample apps (which would have MainWindow.xib files), strip out as much as you can and then re-create them. 因此,您可以下载示例应用程序(该应用程序将包含MainWindow.xib文件),将其删除,然后重新创建它们。

Hopefully they'll update the Big Nerd Ranch books to incorporate storyboarding and Xcode 4.2 very soon. 希望他们能尽快更新Big Nerd Ranch书籍,以将故事板和Xcode 4.2纳入其中。 Apple has a bad habit of changing things so often that it might not be economical or wise to be completely up to date with the latest changes. 苹果公司有一个经常改变事物的坏习惯,以至于完全不了解最新变化可能不经济或明智。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM