Xcode Storyboard 预览尺寸类空白 [英] Xcode Storyboard preview size classes blank

查看:34
本文介绍了Xcode Storyboard 预览尺寸类空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用故事板预览时遇到问题.当我选择使用先前版本的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆