Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to pass touch event to another object?

I referenced the apps called "Comic Strip" and "Balloon Stickies Free"


When i add a speech balloon and touch s.b or s.b's tail, it works.


But when i touch tail's around or between s.b and s.b's tail, it doesn't work.


And Photo gets touch and works below the s.b.


So i tried to use hitTest:withEvent method.


But i don't know how to pass s.b's event to photo below the s.b.


This is the code i used.


- (id)hitTest:(CGPoint)point withEvent:(UIEvent *)event {

UIView *hitView = [super hitTest:point withEvent:event];


if(CGRectContainsPoint(speechBalloon, currentPt)==YES || CGRectContainsPoint(s.b'sTail, currentPt)==YES){

{

return hitView;

}

else{

return nil;

}

}

iOS 5.0.1

Posted on Feb 20, 2012 1:08 AM

Reply

There are no replies.

How to pass touch event to another object?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.