Handle long press on back buttons

This commit is contained in:
aringenbach
2022-06-21 15:09:19 +02:00
committed by aringenbach
parent 3eff84f3c7
commit 137d840d11
16 changed files with 46 additions and 60 deletions
@@ -637,10 +637,8 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
// Do any additional setup after loading the view, typically from a nib.
self.navigationItem.title = [VectorL10n settingsTitle];
// Remove back bar button title when pushing a view controller
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
[self vc_removeBackTitle];
[self.tableView registerClass:MXKTableViewCellWithLabelAndTextField.class forCellReuseIdentifier:[MXKTableViewCellWithLabelAndTextField defaultReuseIdentifier]];
[self.tableView registerClass:MXKTableViewCellWithLabelAndSwitch.class forCellReuseIdentifier:[MXKTableViewCellWithLabelAndSwitch defaultReuseIdentifier]];
[self.tableView registerClass:MXKTableViewCellWithLabelAndMXKImageView.class forCellReuseIdentifier:[MXKTableViewCellWithLabelAndMXKImageView defaultReuseIdentifier]];
@@ -895,10 +893,6 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
{
// Keep ref on pushed view controller
pushedViewController = viewController;
// Hide back button title
self.navigationItem.backBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
[self.navigationController pushViewController:viewController animated:YES];
}