Hi, When pushing a view controller with a toolbar onto a UITabBarController that has a bottom accessory, the toolbar and bottom accessory overlap.
- UITabbarController has a bottomAccessory
- AViewController push BViewController. And BViewController.hidesBottomBarWhenPushed = true
Xcode version : Xcode 26.0 Release Cantidate
sample code let flexible = if #available(iOS 26.0, *) { UIBarButtonItem(barButtonSystemItem: .fixedSpace, target: nil, action: nil) } else { UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil) } let isMemo = isMemo
let emailItem = UIBarButtonItem(image: UIImage(named: "batch_gray_email.png"), style: .plain, target: self, action: #selector(onEmailTapped))
let deleteItem = UIBarButtonItem(image: UIImage(named: "batch_gray_bin.png"), style: .plain, target: self, action: #selector(onDeleteTapped))
deleteItem.tintColor = .systemRed
let editItem = UIBarButtonItem(image: UIImage(named: "batch_gray_compose.png"), style: .plain, target: self, action: #selector(onEditTapped))
let memoItem = UIBarButtonItem(image: UIImage(named: "batch_note.png"), style: .plain, target: self, action: #selector(onMemoTapped))
if isMemo {
setToolbarItems([flexible, deleteItem, flexible, memoItem, flexible], animated: true)
} else {
setToolbarItems([emailItem, flexible, deleteItem, flexible, editItem, flexible, memoItem], animated: true)
}
AViewController *detailViewController = [[AViewController alloc]init];
detailViewController.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:detailViewController animated:true];