在XCode上找不到基于窗口的应用程序 [英] Cannot find window-based application on XCode
问题描述
我正在使用XCode 4.2,由于某种原因,我无法找到基于窗口的应用程序的模板。我需要在这里采取额外的步骤吗?
I am using XCode 4.2 and for some reason I cannot find the template for window-based application. Is there an extra step that I need to take here?
推荐答案
不再有从Xcode开始的基于窗口的应用程序模板4.2。
There is no longer a Window-based Application template starting from Xcode 4.2.
您还有两个裸骨模板选择:
You have two other choices of "bare-bones" templates:
-
基于视图的应用程序模板,它为您提供了一个故事板的视图。它类似于以前版本中的版本,除了视图现在驻留在Xcode 4.2使用的故事板上。
View-based Application template, which gives you a view on a storyboard to start with. It is similar to the one found in previous versions, except the view now resides on a storyboard which Xcode 4.2 makes use of.
空应用程序模板,但是你如果要在Interface Builder中设计应用程序,则必须手动创建并连接窗口nib文件。不过,这只不过是一个微不足道的额外步骤。
Empty Application template, but you'll have to manually create and wire up a window nib file if you want to design your application in Interface Builder. It's nothing more than a trivial extra step, though.
如果你不能使用故事板(例如部署到iOS 4及更早版本),您很可能需要使用空模板。对于主窗口,只需创建一个新的Interface Builder文件并将其指定为项目目标的主窗口。
If you can't make use of storyboards (e.g. to deploy to iOS 4 and earlier), you most likely need to go with the empty template. For the main window, just make a new Interface Builder file and assign it as your project target's Main Window.
这篇关于在XCode上找不到基于窗口的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!