uiview - UIView 标签属性的最大值

这真的只是好奇,但是标签属性有最大值吗?我假设标签是一个 UINT,但我不确定。

最佳答案

“标签”属性是一个 NSInteger。来自 Apple 的 docs :

NSInteger Used to describe an integer.

typedef long NSInteger; Discussion When building 32-bit applications, NSInteger is a 32-bit integer. A 64-bit application treats NSInteger as a 64-bit integer.

最大尺寸是 NSIntegerMax。去吧,将它打印到控制台。

https://stackoverflow.com/questions/18344686/

相关文章:

ruby-on-rails - 如何使用 nginx 作为代理将 redmine 移动到子 URI

php - 使用 preg_replace 使序号全部小写

.net - 定期 - 无法将索引 Y 处的 Unicode 字符 X 转换为指定的代码页

canvas - 如何调试 CORS 错误

c# - 如何获取任何文件/文件夹的系统图标

git - 如何搜索 git 历史(镐),但不包括重命名

r - 在 R : legend and lines 中用线密度代替颜色绘制 map

ruby-on-rails - "heroku logs"给我 "Not found"

hadoop - 以 hdfs 作为接收器的水槽中的 NoSuchMethod 错误

asp.net-mvc-4 - 使用 ADFS 登录创建角色成员资格