Obj-C, how can I append one NSMutableArray to another?

前端 未结 2 1142
名媛妹妹
名媛妹妹 2021-01-17 05:43

How can I append one NSMutableArray to another, from what I\'ve seen, it sound be fairly straight forward. But I\'m getting some weird results, I think the amount of items i

相关标签:
2条回答
  • 2021-01-17 06:23

    You can do that like this:

    [self.transactionArray addObjectsFromArray:arrayTmp];
    

    And on a side note, please always read the documentation before posting a question. This method is easily found in the NSMutableArray documentation.

    0 讨论(0)
  • 2021-01-17 06:23

    You may have a typo. Look at the NSMutableArray method

    - (void)addObjectsFromArray:(NSArray *)otherArray
    
    0 讨论(0)
提交回复
热议问题