![](/img/trans.png)
[英]Swift remove space of Navigation Bar from UITabBarController
[英]How to remove white space on top of my navigation bar? (swift)
navigationController.isNavigationBarHidden = true
嘗試將此行添加到您的代碼中以隱藏默認導航欄。
在視圖控制器的 class 中使用它:
navigationController?.setNavigationBarHidden(true, animated: animated)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.