简体   繁体   English

在xib文件中查找丢失的UIView

[英]Finding a missing UIView in xib file

In one of my xib files, I have a UIView as part of a view controller. 在我的一个xib文件中,我有一个UIView作为视图控制器的一部分。 Only problem is that I can no longer find it on the xib after moving the view to use size classes and applying constraints. 唯一的问题是,在将视图移动为使用大小类并应用约束后,我无法再在xib上找到它。 The view has an outlet defined, but can't be located in any of the size definitions. 该视图已定义出口,但不能位于任何尺寸定义中。

The view exists (it can be seen on the menu if you drill down the into the VC), but can't be selected for editing. 该视图存在(如果您深入查看VC,可以在菜单上看到该视图),但是无法选择该视图进行编辑。

Is there a way to make this view re-appear? 有没有办法使该视图重新出现?

If you can find it in the xib/storyboard menu, select it there. 如果您在xib / storyboard菜单中找到它,请在此处选择它。 Then open the Size Inspector (option-command-5) and change view's x,y location to somewhere you will be able to see it (ie 0,0). 然后打开“大小检查器”(option-command-5),然后将视图的x,y位置更改为可以看到的位置(即0,0)。

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

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