|
@@ -25,6 +25,7 @@
|
|
|
#import "NSString+SupportedMedia.h"
|
|
|
#import "VLCStatusLabel.h"
|
|
|
#import "BasicUPnPDevice+VLC.h"
|
|
|
+#import "UIBarButtonItem+Theme.h"
|
|
|
|
|
|
#define kVLCServerTypeUPNP 0
|
|
|
#define kVLCServerTypeFTP 1
|
|
@@ -32,7 +33,7 @@
|
|
|
@interface VLCLocalServerFolderListViewController () <UITableViewDataSource, UITableViewDelegate, WRRequestDelegate, VLCLocalNetworkListCell, UISearchBarDelegate, UISearchDisplayDelegate, UIActionSheetDelegate>
|
|
|
{
|
|
|
/* UI */
|
|
|
- UIBarButtonItem *_backButton;
|
|
|
+ UIBarButtonItem *_menuButton;
|
|
|
|
|
|
/* generic data storage */
|
|
|
NSString *_listTitle;
|
|
@@ -166,6 +167,9 @@
|
|
|
[tapTwiceGesture setNumberOfTapsRequired:2];
|
|
|
[self.navigationController.navigationBar addGestureRecognizer:tapTwiceGesture];
|
|
|
|
|
|
+ _menuButton = [UIBarButtonItem themedRevealMenuButtonWithTarget:self andSelector:@selector(menuButtonAction:)];
|
|
|
+ self.navigationItem.rightBarButtonItem = _menuButton;
|
|
|
+
|
|
|
_searchData = [[NSMutableArray alloc] init];
|
|
|
[_searchData removeAllObjects];
|
|
|
}
|
|
@@ -178,6 +182,14 @@
|
|
|
return YES;
|
|
|
}
|
|
|
|
|
|
+- (IBAction)menuButtonAction:(id)sender
|
|
|
+{
|
|
|
+ [[(VLCAppDelegate*)[UIApplication sharedApplication].delegate revealController] toggleSidebar:![(VLCAppDelegate*)[UIApplication sharedApplication].delegate revealController].sidebarShowing duration:kGHRevealSidebarDefaultAnimationDuration];
|
|
|
+
|
|
|
+ if (self.isEditing)
|
|
|
+ [self setEditing:NO animated:YES];
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark - Table view data source
|
|
|
|
|
|
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|