CGRectIntegral的用法是什么? [英] CGRectIntegral what is the usage of it?

查看:129
本文介绍了CGRectIntegral的用法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用CGRectIntegral函数?我理解它的目的。




How does one use the CGRectIntegral function? I understand it's purpose.

The documentation isn't clear on it's exact use.

解决方案

CGRectIntegral to convert any decimal values to their integer equivalents
see image may be you can understand

How do I fix it?

frame = CGRectIntegral(frame);

-OR-

myTextView.frame = CGRectIntegral(myTextView.frame);

  see this for more information of CGRectIntegral

这篇关于CGRectIntegral的用法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆