iphone - Is there any limit to add object in NSMutableArray..? -


recently i'm working on project requires large no. of object should added nsmutablearray.

i'm little bit confusing how object can add in nsmutablearray..?

thanks in advance.

it's dependent on memory. older generation devices smaller share of ram (memory) use newer devices apps run. therefore, limit lower on older devices newer ones. said, can't pinpointed specific number (unless mistaken).

rather, should try figure out if can handle memory better here you're not worried size limit :)

edit steffen itterheim's "learn cocos2d game development ios 5", based on installed memory of device, here rough estimates of amount of memory apps can expect work with:

128mb installed => 35-40mb available, memory warnings @ 20-25mb;

256mb installed => 120-150mb available, mem warning @ 80-90mb;

512 mb installed => 340-370mb available, mem warning @ 260-300mb.

of course these rough estimates, depending on device can see size of nsmutablearray depends on available memory


Comments