Commit 134888cc authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: clear touch recognizers when dismissing VC

parent 197a6625
......@@ -78,6 +78,8 @@
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
if (_tapRecognizer)
[self.view removeGestureRecognizer:_tapRecognizer];
if (_swipeRecognizerLeft)
......@@ -86,8 +88,10 @@
[self.view removeGestureRecognizer:_swipeRecognizerRight];
if (_panRecognizer)
[self.view removeGestureRecognizer:_panRecognizer];
[[NSNotificationCenter defaultCenter] removeObserver:self];
_tapRecognizer = nil;
_swipeRecognizerLeft = nil;
_swipeRecognizerRight = nil;
_panRecognizer = nil;
}
#pragma mark - Managing the media item
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment