Commit 1647be2f authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Fix menu showing when changing orientation

Fix by resetting the state of the menu by implementing the delegation of RESideMenu.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 771a67fb
Pipeline #67 failed with stage
in 0 seconds
......@@ -16,7 +16,7 @@
#import "RESideMenu.h"
#import "UIDevice+VLC.h"
@interface VLCSidebarController()
@interface VLCSidebarController() <RESideMenuDelegate>
{
RESideMenu *_sideMenuViewController;
VLCMenuTableViewController *_menuViewController;
......@@ -58,6 +58,8 @@
}
_sideMenuViewController.backgroundImage = [UIImage imageNamed:@"menu-background"];
_sideMenuViewController.delegate = self;
if ([[UIDevice currentDevice] VLCSpeedCategory] <= 2) {
_sideMenuViewController.animationDuration = 0.1f;
_sideMenuViewController.parallaxEnabled = NO;
......@@ -133,4 +135,11 @@
}
}
#pragma mark - RESideMenu Delegate
- (void)sideMenu:(RESideMenu *)sideMenu willHideMenuViewController:(UIViewController *)menuViewController
{
_menuVisible = NO;
}
@end
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