Missplaced认为每次我打开故事板时间 [英] Missplaced views every time i open the storyboard

查看:202
本文介绍了Missplaced认为每次我打开故事板时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用故事板的一些ViewControllers有定位,自动布局的元素。每次我打开故事板,我得到的看法错位的即使我解决所有问题即可。我要再次更新帧一次。有什么办法解决这一问题?
我使用的是X code 6。

I'm using a storyboard with some ViewControllers that have elements positioned with autolayout. Every time i open the storyboard, i get misplaced views even after i fix all of them. I have to update the frames time and time again. Is there any way to fix this? I'm using xcode 6.

推荐答案

由于@Anil Varghese分析指出,问题是视图的大小。比其他任何的温妮 HANY 打开故事板文件时,将触发该警告。我认为这是一个X code错误。

As @Anil Varghese pointed out the problem is the size of the view. Anything other than wAny hAny will trigger this warning when opening the storyboard file. I think it's an Xcode bug.

所以,我必须确保我的观点是建立在像上面的图片。这意味着设计适用于各种规模,所以,在我的情况,我的UI得到了全乱了,我不得不重新设计。但它是最好的!

So I had to make sure that my views are set up like in the picture above. This means designing for all sizes, so, in my case, my UI got all messed up and i had to redesign it. But it was for the best!

当你切换到温妮HANY查看因为它们绑定到其他大小类(比如wCompact HANY)元素将成为无形。您需要从属性检查器中删除这些规则。

这篇关于Missplaced认为每次我打开故事板时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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