简体   繁体   English

UI项目未显示在界面构建器中

[英]UI items do not show up in interface builder

I have a strange issue here about interface builder. 我在这里有一个关于接口生成器的奇怪问题。 I added some views, buttons to my view controller and they were displayed well in the interface builder some hours before. 我向视图控制器中添加了一些视图和按钮,并且它们在几个小时前的界面生成器中已很好地显示。 But now, they disappeared. 但是现在,他们消失了。 I mean, they are not displayed in the interface builder while showing up perfectly when running. 我的意思是,它们在运行时完美显示时没有显示在界面生成器中。 Below images is the view controller in my interface builder. 图片下方是我的界面生成器中的视图控制器。 什么都没有出现在视图控制器中

和视图层次结构。项目是灰色的

Here is some other view controller in the same project. 这是同一项目中的其他一些视图控制器。 Items in it are showing normally. 其中的项目正常显示。 物品正在展示

视图层次结构中的项目。不灰暗。

Could anyone tell me the reason of this ? 谁能告诉我这个原因?

EDIT: They disappeared after I installed some libraries using cocoapods. 编辑:当我使用cocoapods安装了一些库之后,它们消失了。 Can it be the reason? 可能是原因吗?

Check the size class,you may add views in one size class and see it in another 检查尺寸等级,您可以在一个尺寸等级中添加视图,而在另一个尺寸等级中查看

Also,selected the hidden view to check if it is installed in this size class 另外,选择隐藏视图以检查其是否安装在此尺寸等级中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM