How to add an NSMutableArray to an NSMutableArray Objective-c

后端 未结 5 1085
[愿得一人]
[愿得一人] 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:14

    You add it like any other object.

    NSMutableArray *innerArray = [NSMutableArray array];
    NSMutableArray *outerArray = [NSMutableArray array];
    [outerArray addObject:innerArray];
    

提交回复
热议问题