Commit f952317d authored by Gleb Pinigin's avatar Gleb Pinigin Committed by Felix Paul Kühne

Hide toolbar by tapping on the screen

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent f1c56224
......@@ -124,16 +124,20 @@
CGFloat alpha = _controlsHidden? 0.0f: 1.0f;
if (!_controlsHidden) {
_controllerPanel.hidden = NO;
_controllerPanel.alpha = 0.0f;
_controllerPanel.hidden = NO;
_toolbar.alpha = 0.0f;
_toolbar.hidden = NO;
}
void (^animationBlock)() = ^() {
_controllerPanel.alpha = alpha;
_toolbar.alpha = alpha;
};
void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
_controllerPanel.hidden = _controlsHidden;
_toolbar.hidden = _controlsHidden;
};
[UIView animateWithDuration:0.3f animations:animationBlock completion:completionBlock];
......
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