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

前端 未结 2 1146
名媛妹妹
名媛妹妹 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.

提交回复
热议问题