Room Details: Add 'Files' tab

Fix issues
This commit is contained in:
giomfo
2016-10-12 13:54:34 +02:00
parent 4a96bb84fc
commit 8723ca14ba
2 changed files with 24 additions and 0 deletions
@@ -72,6 +72,26 @@
// Register first customized cell view classes used to render bubbles
[self.bubblesTableView registerClass:FilesSearchTableViewCell.class forCellReuseIdentifier:FilesSearchTableViewCell.defaultReuseIdentifier];
self.bubblesTableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
[self setNavBarButtons];
}
// This method is called when the viewcontroller is added or removed from a container view controller.
- (void)didMoveToParentViewController:(nullable UIViewController *)parent
{
[super didMoveToParentViewController:parent];
[self setNavBarButtons];
}
- (void)setNavBarButtons
{
// Check whether the view controller is currently displayed inside a segmented view controller or not.
UIViewController* topViewController = ((self.parentViewController) ? self.parentViewController : self);
topViewController.navigationItem.rightBarButtonItem = nil;
topViewController.navigationItem.leftBarButtonItem = nil;
}
#pragma mark - MXKDataSourceDelegate