How to concatenate two arrays into a single array in Objective-C?
NSArray* newArray = [firstArray arrayByAddingObjectsFromArray:secondArray];
Or using mutable array version just add to it all objects from another array:
[myMutableArray addObjectsFromArray:secondArray];
2.1m questions
2.1m answers
60 comments
57.0k users