简体   繁体   中英

Can I change the template after creation of project in xcode?

I am creating an iOS article reading application which contain multiple headings,images and multiline text using platform Xcode(5.1) and chose template Empty application. I'm in the middle of project to complete. Now , Is it possible to change Empty application to Master Detail application.

No, you cannot change the template after creation of project in xcode. The only thing you have to change before the creation of project.

The template does not restrict what can and can't be done in your app. It just sets out a boilerplate set up of your initial app.

"Changing the template" makes no sense.

The master detail template just uses a uinavigationcontroller as the main navigation. You can just add this to your storyboard.

I'm in the middle of project to complete. Now , Is it possible to change Empty application to Master Detail application

You can achieve the Master Detail application template dynamically/while running your app using UISplitViewController .

The UISplitViewController class is a container view controller that manages the presentation of two side-by-side view controllers. You use this class to implement a master-detail interface, in which the left-side view controller presents a list of items and the right-side presents details of the selected item. Split view controllers are for use exclusively on iPad devices. Attempting to create one on other devices results in an exception.

By default, the split view controller displays both of its view controllers when in a landscape orientation. However, in a portrait orientation, the split view controller displays only the detail view controller by default.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM