如何在故事板上的Xcode 5中抑制约束和布局警告? [英] How-to suppress constraint and layout warnings in Xcode 5 on a storyboard?

查看:78
本文介绍了如何在故事板上的Xcode 5中抑制约束和布局警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何标志可以在Xcode 5中禁止故事板的不明确布局或错位视图。

is there any flag to suppress Ambiguous Layout or Misplaced views for storyboards in Xcode 5.

我在代码中添加约束,我只是使用Interfacebuilder中的视图作为假人。

I am adding the constraints in code and am just using the views in Interfacebuilder as dummies.

我不想应用Xcode Resolve自动布局问题,因为我很高兴看到视觉在Interfacebuilder中如何显现?

I do not want to apply Xcode Resolve auto layout issues since I am happy how the views appear visually in Interfacebuilder?

推荐答案

选择项目构建设置 - >
Interface Builder XIB编译器 - 选项 - >
显示警告 - >设置为NO

Select Project Build Settings -> Interface Builder XIB Compiler - Options -> Show Warnings -> set to "NO"

请注意,如果您希望清除现有警告,可以使用 Shift +⌘+ k

Note that if you wish to clear existing warnings you can clean your project using Shift+⌘+k

这篇关于如何在故事板上的Xcode 5中抑制约束和布局警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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