Arne
Arne

Reputation: 2674

How to convert a project using XIBs to Storyboard?

I have some complex XIB files in a project using TabBarViewControllers containing navigation controllers. Since Xcode 4.2 I cannot edit those XIB files usefully anymore: the contained view controllers are invisible, only represented as grey boxes. It seems that in Storyboard projects this is the default, and the next layer in the storyboard shows the details of the contained views / view controllers. So how can I switch my project to use a storyboard instead?

Upvotes: 10

Views: 15067

Answers (1)

Duck
Duck

Reputation: 36013

The objects are grayed out because of autolayout. Xcode understands that your controllers are not belonging to the current autolayout type.

To make the objects active, select one by one, select the attributes editor (see picture) and at the end of it, see if there is a checked word installed checked out. If there is more items them, delete all them and keep/add only the installed one.

enter image description here

Upvotes: 1

Related Questions