Im getting straight to the point. I have static coordinates stored as array and i want to compare this coordinates with user touch.
//touch handling
UITouch *touch = [[event allTouches] anyObject];
CGPoint touchPoint = [touch locationInView:touch.view];
//comparing touches
if (CGRectContainsPoint((CGRectMake(x1, y1, w, h)) , touchPoint)) {
// do something
// this is where i got stuck coz i got 2 more sets of x & y. (x2-y2 & x3-y3)
but right now im stuck here coz i dont know how to structure my codes and i want to compare 3 save location touches to user touches so that when they hit the right spot points/score will be added but when they hit the wrong spot life will be deducted. Thanks.