I need the solution for this problem. Image Objects(fruits images) are animating from top to bottom just like snow fall. I need to catch that image objects using another image object(basket image). So, I want to find out the basket image and fruit image intersection point. but I didn’t get the intersection point .I used
CGRectIntersectsRect(fruitObjPresentationLayer.frame, basketObjPresentationLayer.frame);
to find out the intersection point..
CGRectIntersectsRect() returns a bool not the intersecting points. So when they do intersect compare the frames position to each other and then do the math to figure out where the intersection is.
Also, frames are rectangles so there their intersecting point will actually be a line, not a point.
You could set up a NSTimer to fire, say, 60 times a second to call