开发者

how to get notify when image is animating over defined path

开发者 https://www.devze.com 2023-03-08 00:51 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消