I am making the switch from Java to Objective-c, and I'm having some difficulty. I have searched this problem this without much success.
I have an NSMutableArray that stores NSMutableArrays. How do I add an array to the array?
Thanks,
Eric
You can either store a reference to another array (or any type of object) in your array:
Or concatinate the arrays.
Both of which are documented in the documentation. |
|||
|
Since an array is just an object like any other:
Or if you want to concatenate them:
|
|||
|
You add it like any other object.
|
|||
|