UIPickerView 中最多可以有多少个组件? [英] How many maximum number of components can be there in UIPickerView?

查看:32
本文介绍了UIPickerView 中最多可以有多少个组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,一个 UIPickerView 可以添加多少个组件?

I was just wondering, how many components can be added to a UIPickerView?

推荐答案

从技术上讲,NSObject 继承的对象最多可以容纳 NSUIntegerMax 对象(这是 count 可以返回的最大值).在像 iPhone 这样的 32 位系统上,这个数字略高于 40 亿.在像大多数 Mac/iPhone5S 一样的 64 位系统上,它要高出许多数量级.

Technically, NSObject inherited objects can hold up to NSUIntegerMax objects (this is the largest value that can be returned from count). On a 32-bit system like the iPhone, that is a little over 4 billion. On a 64-bit system like most Macs/iPhone5S, it is many orders of magnitude higher.

我怀疑在达到此 CS 限制之前,您的 RAM 将耗尽.

I suspect you will run out of RAM before you hit this CS limit.

这篇关于UIPickerView 中最多可以有多少个组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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