Xcode 5 - 故事板 - 没有约束 [英] Xcode 5 - Storyboard - Has no constraints
本文介绍了Xcode 5 - 故事板 - 没有约束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道为什么我收到以下消息:
Does anyone know why I get the following message:
所选视图没有约束。在构建时显式左,顶,宽和高度限制将为视图生成。
"The selected views have no constraints. At build time explicit left, top, width, and height constraints will be generated for the view."
我正在使用XCode 5 - 故障板打开AutoLayout
I'm using XCode 5 - Storyboard with AutoLayout turned on
推荐答案
找到解决方案!
然后从XCode菜单中选择ViewController:
Select the ViewController then from the XCode menu:
编辑器 - >解决自动布局问题 - >在视图控制器中添加缺少的约束
Editor --> Resolve Auto Layout issues --> Add missing constraints in View Controller
这篇关于Xcode 5 - 故事板 - 没有约束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文