简体   繁体   中英

How do I bring from the dead elements from a viewController

I have this viewController I copied from a storyboard using Size Classes to another one that is not using Size Classes.

Before you say anything: there is a bug on XCode/iOS or whatever, that prevents a SplitViewController from being the rootViewController on iPads running iOS 7, unless you turn off size classes on xcode.

I have copied this viewController to the storyboard not using Size Classes and now all elements are grayed out.

在此处输入图片说明

How do I bring that to life?

It is not easy as you think.

This is just a guess, but what I would try is: Turn off size classes first in the original storyboard, and then copy.

(If you don't want to risk losing information from the original when you turn off size classes, make a duplicate of the original storyboard first.)

It's because the views have been set for a different size class in Interface Builder than the one which you have currently selected.

I encountered the same issue, read more here: Why don't my views show up in Storyboards and are greyed out in the left pane? and Interface Builder Objects not visible in my storyboard (and titles are transparent)

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