detect collision of two moving buttons in iPhone
问题 I am using the below function to move two buttons on the screen + (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished)); Now I want to detect the collision of those moving button. So I want to know is there any event which is getting fired when the object is animating(moving). Or where else can I place my condition of CGRectIntersectsRect(,); 回答1: + (void