如何修复X $ C $ç布局问题? [英] How to fix Xcode layout issues?

查看:76
本文介绍了如何修复X $ C $ç布局问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计布局,使我选择了wCompact和哈尼为它的大小类。我定的约束条件,也没有问题,当我运行它。但每次我关闭在X code重新打开该项目,有自带的约束多个问题。如图中所示。

I am designing layout for iPhones so I chose "wCompact and hAny" size class for it. I fix the constraints and there is no issue while I am running it. But every time I close the Xcode reopen the project, there comes multiple issues with the constraints. As shown in the picture.

我固定更新框架为每个约束的问题。选择下面图片中的第一个选项。但是,当我再次重新打开X code,同样的问题出现了一遍又一遍。我必须重做这一切的时候。是什么造成这个问题,如何解决呢?

I fixed the issue updating the frame as per constraint. Choosing the first option in the picture below. But again when I reopen the Xcode, same issue arises over and over again. I have to redo it all the time. What's causing this problem and how to resolve it?

推荐答案

这是关于外部容器上视图的位置限制的问题是不正确的。
试图找到它,解决它。

that is problem about outside container view's position constraints was not right. try to find it and fix it.

在视图做负载,可以发现在LLDB控制台的问题。

when the view did load, you can find the problem in the LLDB Console.

这篇关于如何修复X $ C $ç布局问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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