i have 2 NSMutableArray with same type. i want to add second nsmutablearray to first one.
NSMutableArray *tmpArray1 (10 objects in it)
NSMutableArray *tmpArray2 (10 objects in it)
if i use [tmpArray1 addobject:tmparray2];  tmpArray1's count goes to 11.
but i want to append tmparray2 to firstone. count must be 20.
thank开发者_Go百科s...
Try this:
[tmpArray1 addObjectsFromArray:tmparray2];
Use -addObjectsFromArray: to extend a array by another. 
[tmpArray1 addObjectsFromArray:tmpArray2];
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论