不等式约束歧义 [英] Inequality Constraint Ambiguity
问题描述
我调整与自动布局和约束一个UIView已经有问题。
我想改变原点(小于或等于原)和宽度(大于或等于原),但我得到这个:不等式约束歧义
i've a problem in resizing a UIView with Autolayout and constraints. I'd like to change the origin (less than or equal of original) and the width (greater than or equal of original) but I got this: Inequality Constraint Ambiguity
你有想法解决这个问题?
Do you have idea for solve this?
感谢
推荐答案
我试图让超过1垂直间距约束收缩3.5显示器,所以我不得不做,我想萎缩变小屏幕上的组件之间的2约束其中一个制约因素是不等式(大于或等于)在那里我指定的最低要求的尺寸,与1000优先,其他制约因素是平等的约束与特定的大小适合于4画面,但与250较低的优先级。
I tried to make more than 1 vertical spacing constraint shrink for 3.5" displays, so I had to make 2 constraints between components that I wanted to shrink on smaller screen. One constraint was inequality (greater or equal) where I specified minimum required size, with 1000 priority, other constraint was equality constraint with specific size that is suitable for 4" screen, but with lower priority of 250.
此方式X $ C $Ç停止抱怨和布局重新定位正确较小的屏幕上。
This way Xcode stopped complaining and layout repositioned properly on smaller screen.
这篇关于不等式约束歧义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!