本文介绍了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中的最大对象数
发布评论