[英]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.