问题
Xcode 4.2 no longer has the Navigation-based Application template.
What should I use in replacement when starting a project?
回答1:
to get a Table View and a Detail View you should go with the Master-detail template. Although at first you may think about it being iPad-only, the iPhone version builds an application which is similar to the Navigation-based.
回答2:
I don't think that it works. Anyway, you should start with a single view application, then add the files from the New-File menu. You should select View. Then click create. It should generate the required files for you.
回答3:
In Xcode 4.2 you have to use SIngle-View Application Template. it's the same than Navigation-based Application template.
回答4:
The Single View Application does not set up the nav controller for you either. You have to build it manually.
What I suggest doing, if you can, load an older version of Xcode and create a blank Navigation-Based app. Use it as a reference for your new apps. You'll have to change your class and file names, of course, but I dont see any issue with doing it that way.
来源:https://stackoverflow.com/questions/8196123/replacement-for-navigation-based-application-template-in-xcode-4-2