【发布时间】:2020-08-28 06:08:31
【问题描述】:
它显示了两个 navigationBarControllers!
顶部蓝色和默认导航栏下方。
var rootVC = CustomNavigationController()
let tabbarViewController = UIStoryboard(name: AppStoryboard.dashboard.rawValue, bundle: nil).instantiateViewController(withIdentifier: "TabBarViewController") as! TabBarViewController
rootVC = CustomNavigationController.init(rootViewController: tabbarViewController)
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.window?.rootViewController = rootVC
【问题讨论】:
-
"rootVC.isNavigationBarHidden = true" 添加此行隐藏默认导航栏
标签: ios swift uinavigationcontroller uitabbarcontroller