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