Xcode 4.2 creating navigation based application

我们两清 提交于 2019-11-26 16:26:51

问题


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?


回答1:


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.




回答2:


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.




回答3:


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.




回答4:


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.




回答5:


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.




回答6:


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




回答7:


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




回答8:


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



来源:https://stackoverflow.com/questions/7869594/xcode-4-2-creating-navigation-based-application

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