Use storyboards in a project which has .xib files- iPhone

cocoa, ios, iphone, storyboard, xib

Solution

You can use a storyboard for any part of a program. Storyboards are not an all or nothing concept. You can have just one view controller in a storyboard, or a small network that just represents a subsection of your app.

To use just one view controller from a storyboard:

- Add a new storyboard to your existing project.

- Add a single view controller to the storyboard.

- Assign an identifier to the view controller in the inspector.

- Use the UIStoryboard class to load the storyboard resource

- Use -[UIStoryboard instantiateViewControllerWithIdentifier:] to create a new instance of that view controller.

- Install the view controller some place in your app by doing something like pushing it on to a navigation controller, or run it modally.

Problem

I want to use generally the old .xib files in my iPhone application. But when it comes to tableViewController storyboard is a lot more convenient in order to make custom cells etc. Is it possible to make a .xib based application and in the middle of it, to use a storyboard for a UITableViewController and its DetailedViewController only?

Original source