views:

193

answers:

1

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?

Thanks!

+6  A: 

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

[array1 removeObjectsInArray:array2];
Morion
the perfect answer.... and now my fav line of code :)
Tom G