gpt4 book ai didi

iphone - CGRectIntegral 的用法是什么?

转载 作者:太空狗 更新时间:2023-10-30 03:09:06 28 4
gpt4 key购买 nike

如何使用 CGRectIntegral 函数?我明白它的目的。

documentation尚不清楚它的确切用途。

最佳答案

CGRectIntegral 将任何十进制值转换为它们的等价整数
看图可能你就明白了enter image description here

我该如何解决?

frame = CGRectIntegral(frame);

-或-

myTextView.frame = CGRectIntegral(myTextView.frame);

看这个for more information of CGRectIntegral

关于iphone - CGRectIntegral 的用法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9975219/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com