I am working on a rock paper scissor shoe game, and I have no idea on how to do this. I have two UIImageView(s), and within each one is an image. I want to be able to compare the two images. I have looked up online, and cannot find anything. I want to be able to say
if([imageView1.image == rock] && [imageView2.image == scissor]) {
textLabel.text = @"You won!";
}
I know that this syntax is wrong of course, but I am trying to show the english part of what I am looking for. Any help is appreciated.
I do not have any kind of source code to show you as I do not know what I am doing with this. I am not looking for pixel to pixel comparison, or anything complex, I am only looking for a way to determine if the image is the same or not.