Detecting touch on an image

Monkey Targets Forums/iOS/Detecting touch on an image

Spacebuddy(Posted 2011) [#1]
Anyone know how to detect if a user touches a bitmap?

I am currently using TouchHit(0), just not sure how to detect touch on image.

Thanks :)


MikeHart(Posted 2011) [#2]
Get the touich coordinates with TouchX(0) and TouchY(0). Then compare them with the image coordinates and boundaries. If the touch is inside them, you have a hit.