Xcode 4.2 创建基于导航的应用程序 [英] Xcode 4.2 creating navigation based application

查看:27
本文介绍了Xcode 4.2 创建基于导航的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是尝试通过 xcode 4.2 创建基于导航的应用程序我在新窗口中发现的所有内容都与基于导航的应用程序无关..我发现基于页面的应用程序与基于导航的应用程序最接近

I just tried to create navigation based application via xcode 4.2 and all I found in the new window have nothing to do with navigation based application .. I found page based application which is the nearest thing to the navigation based application

但它是用我无法处理的故事板创建的..

but it created with the story board which I can't handle yet..

那么有没有办法创建基于导航的旧应用程序?如果不是,还有什么选择?

So is there a way to create the good old nav based app? and if not what the alternatives?

推荐答案

对于仅导航应用程序,您必须先选择单视图应用程序.这将只提供一个没有导航控制器的基于视图的应用程序.

For Navigation only application, you have to chose single view application first. This will give only a view based application without navigationcontroller.

您所要做的就是选择视图控制器并转到菜单

All you have to do is select the viewcontroller and goto menu

Editor -> Embed In -> Navigation Controller

这将为您提供一个基于导航的项目以开始工作.

This will give you a navigation based project to start work with.

正如@Tommy Herbert 所说,您可以选择主从应用程序模板,您可以在其中选择更多选项,例如核心数据.但这会将您的前两个 VC 命名为 master-controller 和 detailcontroller,这并不恰当.

as @Tommy Herbert said, you can choose master-detail application template where you can select more option like Core data. But this will name your first two VC as master-controller and detailcontroller which is not apt.

这篇关于Xcode 4.2 创建基于导航的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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