What is maximum size of data that an object can hold on the iPhone?
What i开发者_Python百科s maximum size of data that an object can hold on the iPhone?
The amount of memory the iPhone currently can allocate to an object is the amount of memory currently available.
Conceptually, there is no limit. The iPhone itself does have physical limits, though.
You must test your apps on the iPhone heavily before releasing an app that will get arbitrary length data.
You should make sure that the data length is within reasonable bounds.
The last thing you want is -didReceiveMemoryWarning
being called and your app exiting.
There's no size limit.
(Except limited by the RAM and pointer bit-size.)
精彩评论