I have two image array, where I want to compare if the images are same in both the arrays, how to compare two UIImage objects..??
for (int i=0; i< imageArray_1.count; i++) {
for (int j=0; j< imageArray_2.count; j++) {
if ([[imageArray_1 objectAtIndex:i]isEqualToData:[imageArray_2 objectAtIndex:j]]) {
NSLog(@"Matched");
}
else{
NSLog(@"Not Matched");
}
}
}
It does not work for me, Any suggestions will be appreciated. Thanks in advance.