Commit 0a89b320 authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: remove write-only UIView

parent 4a0ebf28
......@@ -49,7 +49,6 @@
BOOL _swipeGesturesEnabled;
NSString * panType;
UIView *_rootView;
UIView *_splashView;
UIPanGestureRecognizer *_panRecognizer;
UISwipeGestureRecognizer *_swipeRecognizerLeft;
UISwipeGestureRecognizer *_swipeRecognizerRight;
......@@ -71,8 +70,6 @@
- (void)dealloc
{
if (_splashView)
[_splashView removeFromSuperview];
if (_tapRecognizer)
[_rootView removeGestureRecognizer:_tapRecognizer];
if (_swipeRecognizerLeft)
......@@ -877,10 +874,6 @@
[_mediaPlayer play];
[self.statusLabel showStatusMessage:@" ►"];
}
[_rootView addSubview:_splashView];
[UIView animateWithDuration:1
animations:^{ _splashView.alpha = 0.0f;}
completion:^(BOOL finished){ [_splashView removeFromSuperview]; }];
}
- (NSString*)detectPanTypeForPan:(UIPanGestureRecognizer*)panRecognizer
......@@ -975,7 +968,6 @@
}
if (swipeRecognizer.state == UIGestureRecognizerStateEnded) {
[_rootView addSubview:_splashView];
if ([_mediaPlayer isPlaying])
[_mediaPlayer play];
......
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