Xcode Storyboard 预览尺寸类空白 [英] Xcode Storyboard preview size classes blank
问题描述
我在使用故事板预览时遇到问题.当我选择使用先前版本的 Xcode (6.0) 创建的旧 ViewController 时,预览仅显示导航栏.但是,如果我创建一个新的 ViewController 并在其中放入一些元素,则预览有效.当前的 Xcode 版本是 6.3.2.
I have a problem with storyboard preview. When I select a old ViewController created with a previous version of Xcode (6.0), the preview show me only the navigation bar. But, if I create a new ViewController and put inside it some elements, the preview works. The current version of Xcode is the 6.3.2.
谢谢
推荐答案
您放置在旧 ViewController"中的界面元素已添加到特定大小类下.您在预览时不属于那个尺寸等级,因此这些界面元素不存在.
The interface elements that you put inside the "old ViewController" were added under a particular size class. You are not in that size class with your preview, so those interface elements are not present.
这篇关于Xcode Storyboard 预览尺寸类空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!