Xcode 4.2 creating navigation based application

佐手、 提交于 2019-11-27 13:39:18

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.

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.

Until you're comfortable with the new features in iOS 5 (Storyboards, Page View Controllers, etc.), your best bet is to keep a copy of Xcode 3 and create your project there, then open the project in Xcode 4.

You can still download the last version of Xcode 3 (3.2.6 with iOS SDK 4.3) from the developer page:

http://developer.apple.com/devcenter/ios

The "About Xcode and iOS SDK" PDF on the install disk describes how to choose a custom install location to avoid overwriting your Xcode 4 install. Don't select the Unix tools option as that will overwrite that portion of your current Xcode 4 install.

You have to insert Master detail app. This template provides a starting point for a master-detail application. It provides a user interface configured with a navigation controller to display a list of items and also a split view on iPad.

When you press Next after selecting the project template, there's a few checkboxes at the bottom of the screen. One of those is "Use Storyboard". Untick that and you'll go back to the old way of designing interfaces.

As darvids0n says, you should start from the Master-Detail Application template rather than the Page-Based one. You're free to untick Use Storyboard while choosing options for the new project.

Just create single view application, and in xib just drag'n'drop navigation controller from library to objects.

for me , start build an empty project and then create a new MainWindow and then just drag the navigtioncontroller to the newwindow u create

Open X-code Project -> create new project -> Click On Master Based Application The window Is Open This Is The process For Creating Direct Navigation Based Applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!