【发布时间】:2021-07-18 06:27:48
【问题描述】:
在我的项目中,我使用 hidesBottomBarWhenPushed 作为
尝试 1:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let vc = AppStoryboard.Chat.instance.instantiateViewController(withIdentifier: "ChatDetailViewController") as! ChatDetailViewController
vc.hidesBottomBarWhenPushed = true
navigationController?.pushViewController(vc, animated: true)
}
但 tabBar 仍然可见。
试过 2
我也试过tabBar.isHidden,但没有用。
试过 3
在我使用的 TabBarController 类中
hidesBottomBarWhenPushed = true
【问题讨论】:
-
self.tabBarController?.tabBar.isHidden = true