how to get notify when image is animating over defined path
I have a image which is animating all over screen randomly using image layer addAnimation. I have added a开发者_C百科round 15 points using CGPathAddLineToPoint.
So my problem is how to get notify my touches over that animating image.
I cant use
if((CGRectContainsPoint([myImage frame], [touch locationInView:touch.view])))
Because anytime the frame will be last point added using CGPath.
Thanks
精彩评论