mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Use protocol to get title from child VCs.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
#import "GeneratedInterface-Swift.h"
|
||||
|
||||
@interface RoomsViewController ()
|
||||
@interface RoomsViewController () <MasterTabBarItemDisplayProtocol>
|
||||
{
|
||||
RecentsDataSource *recentsDataSource;
|
||||
}
|
||||
@@ -66,8 +66,6 @@
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
|
||||
[AppDelegate theDelegate].masterTabBarController.navigationItem.title = [VectorL10n titleRooms];
|
||||
[AppDelegate theDelegate].masterTabBarController.tabBar.tintColor = ThemeService.shared.theme.tintColor;
|
||||
|
||||
if ([self.dataSource isKindOfClass:RecentsDataSource.class])
|
||||
@@ -165,4 +163,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - MasterTabBarItemDisplayProtocol
|
||||
|
||||
- (NSString *)masterTabBarItemTitle
|
||||
{
|
||||
return [VectorL10n titleRooms];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user