How to add an NSMutableArray to an NSMutableArray Objective-c

后端 未结 5 1077
[愿得一人]
[愿得一人] 2021-02-12 13:50

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

5条回答
  •  有刺的猬
    2021-02-12 14:17

    Since an array is just an object like any other:

    [myContainerMutableArray addObject:someOtherArray];
    

    Or if you want to concatenate them:

    [myFirstMutableArray addObjectsFromArray:otherArray];
    

提交回复
热议问题