开发者

Remove objects from NSMutable array that match with objects from another NSMutable Array

开发者 https://www.devze.com 2022-12-13 23:57 出处:网络
Ok so: i have NSMutableArray 1 i also have NSMutableArray 2 I would like to remove all objects from array 1 that match with objects in array 2开发者_开发问答.

Ok so:

  • i have NSMutableArray 1
    • i also have NSMutableArray 2

I would like to remove all objects from array 1 that match with objects in array 2开发者_开发问答.

Any ideas?


I've just opened the documentation, print NSMutableArray and check removing objects section...

[array1 removeObjectsInArray:array2];
0

精彩评论

暂无评论...
验证码 换一张
取 消