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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 *)eventand/or
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)eventmethods for a primitive collision detection algorithm.