NSArray中的最大对象数 [英] Maximum amount of objects in NSArray

查看:257
本文介绍了NSArray中的最大对象数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在我的NSArray中放置的对象的最大量是多少?

What is the largest amount of objects I can put in my NSArray?

推荐答案

NSArray initWithCapacity方法将unsigned int作为参数。因此,无论平台上的unsigned int的最大值是什么,都可能是理论上的限制。但实际限额更可能取决于您可用的内存量。

The NSArray initWithCapacity method, takes an unsigned int as an argument. So whatever the maximum value of an unsigned int is on your platform may be the theoretical limit. However the actual limit is more likely to depend on the amount of memory you have available.

这篇关于NSArray中的最大对象数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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