I want to compare 2 NSMutableArray
and get different object into third Array
. How can i do that ?
Array1 can loop object .
Array1 = "a", "b","c","d","a","b","c";
Array2 = "a", "b", "c";
And then result
Array3 = "d";
Thanks in advance
I want to compare 2 Array1 can loop object .
And then result
Thanks in advance |
||||
add comment |
Use sets for set operations:
|
|||||||||||||||||||||
|
You Can try this too.
|
|||||||||||||||||
|
I have used the following and got the desired results:
|
|||||||||||||
|
EDITED:
|
|||||||||||||||||||||
|
[ "d" ]
, or should it be[ "b", "d" ]
, your question isn't clear about what 'diff object' means? – Wain Jul 12 '13 at 9:26