Its really a simple question but I want a short way to compare two array to get index of containing object. For example we have two arrays....
NSArray *array1=@[@"b",@"a",@"c"];
NSArray *array2=@[@"c",@"b",@"a"];
After comparison from array2 to array1, I want the index of the containing object in array1.
I tried to check the this link but I didn't get ans as I expected Fastest way to check if an array contains the same objects of another array