Ios 在Swift中禁用约束警告?

Ios 在Swift中禁用约束警告?,ios,swift,storyboard,nslayoutconstraint,Ios,Swift,Storyboard,Nslayoutconstraint,当我进入某个视图时,我总是收到这个巨大的约束警告,使我的控制台混乱不堪。我意识到我的约束可能已关闭,但所有内容都以我希望的方式显示,没有任何故事板或编译时警告 那么,有没有办法摆脱这个令人讨厌的大消息呢 Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugg

当我进入某个视图时,我总是收到这个巨大的约束警告,使我的控制台混乱不堪。我意识到我的约束可能已关闭,但所有内容都以我希望的方式显示,没有任何故事板或编译时警告

那么,有没有办法摆脱这个令人讨厌的大消息呢

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2015-08-05 15:26:27.151[APP][12834:12179015] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSLayoutConstraint:0x7ffef7529660 H:[UIImageView:0x7ffef75294b0(94)]>",
    "<NSLayoutConstraint:0x7ffef752a220 H:[UILabel:0x7ffef752a020'Mahi Mahi Filet Fresh'(432)]>",
    "<NSLayoutConstraint:0x7ffef752d470 UIImageView:0x7ffef75294b0.leading == UITableViewCellContentView:0x7ffef7529370.leadingMargin>",
    "<NSLayoutConstraint:0x7ffef752d790 H:[UIImageView:0x7ffef75294b0]-(NSSpace(8))-[UILabel:0x7ffef752a020'Mahi Mahi Filet Fresh']>",
    "<NSLayoutConstraint:0x7ffef752dc90 UITableViewCellContentView:0x7ffef7529370.trailingMargin == UILabel:0x7ffef752c180'07/07'.trailing>",
    "<NSLayoutConstraint:0x7ffef752dce0 H:[UILabel:0x7ffef752a020'Mahi Mahi Filet Fresh']-(NSSpace(8))-[UILabel:0x7ffef752c180'07/07']>",
    "<NSLayoutConstraint:0x7ffef75351b0 'fittingSizeHTarget' H:[UITableViewCellContentView:0x7ffef7529370(375)]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7ffef752a220 H:[UILabel:0x7ffef752a020'Mahi Mahi Filet Fresh'(432)]>
在UIViewAlertForUnsatifiableConstraints处创建一个符号断点,以便在调试器中捕获该断点。
中列出的UIView上UIConstraintBasedLayoutDebugging类别中的方法也可能会有所帮助。
2015-08-05 15:26:27.151[APP][12834:12179015]无法同时满足约束条件。
可能下面列表中至少有一个约束是您不想要的。试着这样做:(1)看看每个约束,试着找出你不期望的约束;(2) 找到添加了不需要的约束的代码,然后修复它。(注意:如果您看到不理解的NSAutoresizingMaskLayoutConstraints,请参阅UIView属性TranslatesAutoResizingMaskToConstraints的文档)
(
"",
"",
"",
"",
"",
"",
""
)
将尝试通过打破约束进行恢复
我强烈建议您解决此问题,而不是抑制警告。。。他们在那里是有原因的。出于好奇,我自己找不到抑制tem的方法,但在Xcode上,您可以尝试“选择您的项目->构建设置->接口生成器XIB编译器-选项->显示警告->否”。我强烈建议您修复此问题,而不是抑制警告。。。他们在那里是有原因的。出于好奇,我自己找不到抑制tem的方法,但在Xcode上,您可以尝试“选择您的项目->构建设置->接口生成器XIB编译器-选项->显示警告->否”