Subview touchesEnded 送る to ParentView

iOS5から変わったとか。わっけっわっかっらっん。。。

旧)
-(void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {

NSLog(@”%s”,__func__);

[self.nextResponder touchesEnded:touches withEvent:event];

}

-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {

NSLog(@”%s”,__func__);

[self.nextResponder touchesEnded:touches withEvent:event];

}

新)
-(void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {

NSLog(@”%s”,__func__);

[[self.nextResponder nextResponder] touchesEnded:touches withEvent:event];

}

-(void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {

NSLog(@”%s”,__func__);

[[self.nextResponder nextResponder] touchesEnded:touches withEvent:event];

}

Subview touchesEnded 送る to ParentView
トップへ戻る