This is for iPhone Developers. What would be the code for an event handler? For my project I want it so that on collision display an animation for 3 seconds....How would I go around doing this?
A:
Although you've provided almost no information about the context in which this activity is occurring, I will take a shot in the dark. If you are working with NSView's, you can use the
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
and/or
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
methods for a primitive collision detection algorithm.
CJ
2010-03-31 01:18:38
ok thanks. where do I add the code?
Da Coder
2010-04-01 00:44:32
You've provided no information. Why don't you provide code and a helpful description so someone can more easily help you out?
CJ
2010-04-01 13:14:45