From 2367ff97f537f850f3a3eba774d6413a31531cd6 Mon Sep 17 00:00:00 2001 From: Benedikt Terhechte Date: Mon, 6 May 2013 00:26:50 +0300 Subject: [PATCH] Fixed an error where the touch delegate is never called, but crashes --- MTInfoPanel/MTInfoPanel/MTInfoPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MTInfoPanel/MTInfoPanel/MTInfoPanel.m b/MTInfoPanel/MTInfoPanel/MTInfoPanel.m index db760a3..4c9177d 100644 --- a/MTInfoPanel/MTInfoPanel/MTInfoPanel.m +++ b/MTInfoPanel/MTInfoPanel/MTInfoPanel.m @@ -365,7 +365,7 @@ - (void)finish { -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" - [self performSelector:onTouched_]; + [delegate_ performSelector:onTouched_]; #pragma clang diagnostic pop }