故事板 UI 元素未显示在编辑器中 [英] Storyboard UI Elements not displaying in editor

查看:39
本文介绍了故事板 UI 元素未显示在编辑器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始在故事板上用 Xcode 构建一个移动应用程序,两天前,我已经完美地准备好了所有元素,但是现在当我打开 Xcode 并查看故事板时,元素没有显示并且文档大纲中的对象全部变灰.

I've started building a mobile app in Xcode on the storyboard, and 2 days ago, I had all of the elements in place perfectly, but now when I open Xcode and look at the storyboard, the elements don't display and the objects in the document outline are all grayed out.

我仍然可以将应用部署到手机或模拟器上,并且可以很好地查看元素,所以这似乎不是元素放置的问题,而是编辑器本身的问题.

I can still deploy the app to a phone or the simulator and see the elements just fine, so it doesn't seem to be an issue with the placement of the elements, but just an issue with the editor itself.

Xcode Storyboard http://f.cl.ly/items/2B0x0z1N1D1l2P053938/Image%202014-11-13%20at%2009%3A27%3A28.png

推荐答案

当您启用大小类但添加了特定大小的 UI 项时,会发生这种情况.检查界面构建器的底部,确保尺寸正确.

This happens when you enable Size Classes but added the UI items for specific size. Make sure that you are on correct size by checking bottom of Interface builder.

这篇关于故事板 UI 元素未显示在编辑器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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