作者:勇敢的刺鸟宝贝4164053383 | 来源:互联网 | 2023-09-23 15:52
WhileworkingwithAutoLayoutandConstraintsintheInterfaceBuilder,InoticedthatIamgetting
While working with Auto Layout and Constraints in the Interface Builder, I noticed that I am getting different results with the same constraints when I run iOS7 vs iOS8 simulator.
在使用界面构建器中的自动布局和约束时,我注意到,当我运行iOS7和iOS8模拟器时,我得到了不同的结果,它们的约束是相同的。
For example, I have a very simple Trailing Constraint set on a UIButton of 8pts. These 8pts look very different in placement when running on iOS7 vs iOS8 simulator. iOS8 simulator seems to add a few points to the constraint. It's as if there needs to be functionality for Constraint Delta's...
例如,我有一个非常简单的末尾约束设置在一个UIButton上,值为8pts。当在iOS7和iOS8模拟器上运行时,这些8点看起来非常不同。iOS8模拟器似乎增加了一些约束点。就好像需要有约束Delta的功能。
Any ideas why constraints behave different on iOS7 vs iOS8?
有什么想法为什么限制在iOS7和iOS8上表现不同吗?
1 个解决方案