Xcode 6 和 7 的故事板问题 [英] Storyboard issue with Xcode 6 and 7

查看:37
本文介绍了Xcode 6 和 7 的故事板问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我的主故事板显示如上图所示?我复制了该项目,但现在他们俩的故事板都有相同的问题!我可以使用模拟器运行应用程序并且运行良好,但我看不到任何标签或按钮.

Why my Main Storyboard appears like shown at Above? I made a copy of the project but now both of them have the same problem with the storyboard! I can run the app using the simulator and it works fine, but I can't see any labels or the buttons.

推荐答案

问题在于您的设备布局....实际上它在其他布局上制作,例如 wAny hAny,现在您在其他布局上显示它,例如 wCompact hRegular....这就是问题发生的原因...

The problem is with your device layout.... Actually it makes on other layout like wAny hAny and now you show it on other layouts like wCompact hRegular....thats why the problem occurs...

这是它的视觉网站....

Here is the visual site of it....

为了防止这种类型的事情......你需要给你的对象施加约束......在做出正确的约束之后,除了自适应布局外,尺寸类不会那么重要

To prevent this type of things...you need to give constraints to your objects..after making correct constraints, the size classes won't matter that much except adaptive layout

这篇关于Xcode 6 和 7 的故事板问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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