iphone - What is best way to get breakdown image in UIImage? -


For example: If I have an image of man, and I want to trigger the incident (head) from the different part of the human body, then

, stomach).

Then what is the best way to create that image and trigger a pro grammatical from UIImageView

I will detect the areas of the image that you want to trigger different events and then UIGestureRecoginzer or UIView to determine whether these Whether or not a touch has arrived in one area. After this, you will need to determine whether the location of a touch is within the areas you have defined using 2D point-in-shape test (). Based on the complexity of the areas you have defined, this test can be more complex.

Comments