本文介绍了你能在IB中输入带小数的约束值吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是希望它是一个简单的设置。
Here is to hoping it is a simple setting.
我不能在IB中输入带小数的约束值。每当我输入带小数的值并按Enter键时,系统会对其进行舍入!
I cannot enter a constraint value with decimals in IB. Whenever I enter a value with decimals and press enter, the system rounds it!
在代码中创建约束时我没有这个问题。只在IB。
I don't have this problem when creating constraints in code. Only in IB.
有办法吗?
推荐答案
是,你可以。
-
输入带有f后缀的值,如下所示:
Enter the value with a "f" postfix like this:
点击优先级。注意有效约束值如何变为0.5:
Click Priority. notice how the effective constraint value changes to 0.5:
这篇关于你能在IB中输入带小数的约束值吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!