欢迎访问 生活随笔!

尊龙游戏旗舰厅官网

当前位置: 尊龙游戏旗舰厅官网 > > 编程问答 >内容正文

编程问答

unable to simultaneously satisfy constraints. -尊龙游戏旗舰厅官网

发布时间:2025/1/21 编程问答 6 豆豆
尊龙游戏旗舰厅官网 收集整理的这篇文章主要介绍了 unable to simultaneously satisfy constraints. 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

开发版本  7.0 

@property(nonatomic) bool translatesautoresizingmaskintoconstraints ns_available_ios(6_0); // default yes

此属性 6.0 版本

错误提示:

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) ("","","","","" )will attempt to recover by breaking constraint make a symbolic breakpoint at uiviewalertforunsatisfiableconstraints to catch this in the debugger. the methods in the uiconstraintbasedlayoutdebugging category on uiview listed in may also be helpful.

 解决办法:

出错的view . translatesautoresizingmaskintoconstraints = no ;即可解决

无意之中发现只要设置xib 中的size 为任意的iphone 尺寸也能解决上面的问题, 不能死inferred!!!

转载于:https://www.cnblogs.com/fleas/p/5717760.html

总结

以上是尊龙游戏旗舰厅官网为你收集整理的unable to simultaneously satisfy constraints.的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得尊龙游戏旗舰厅官网网站内容还不错,欢迎将尊龙游戏旗舰厅官网推荐给好友。

网站地图