0

I'm using 3 CALayers which are animating Up and Down in a line, how can i detect collision between these layers, i have used CGRectIntersectsRect to detect collision but i didn't get anything. Please help me.

4

1 回答 1

1

CGRectIntersectRect is a function which returns the boolean value, if one object intersects with other object. You must passed the two parameters(rect of two objects whose intersection you want to check) for this function. Please send some lines of code for better understanding.

possible duplicate

possible duplicate

于 2012-12-13T07:09:10.097 回答