Handle long press on back buttons

This commit is contained in:
aringenbach
2022-06-21 15:09:19 +02:00
committed by aringenbach
parent 1020c981cb
commit e18a58846c
16 changed files with 46 additions and 60 deletions
@@ -825,15 +825,15 @@
if (self.parentViewController.navigationController)
{
// Hide back button title
self.parentViewController.navigationItem.backBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
[self.parentViewController vc_removeBackTitle];
[self.parentViewController.navigationController pushViewController:viewController animated:YES];
}
else
{
// Hide back button title
self.navigationItem.backBarButtonItem =[[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
[self vc_removeBackTitle];
[self.navigationController pushViewController:viewController animated:YES];
}
}