问题描述
我正在以编程方式创建导航视图,我希望在暗模式下使用白色导航栏。我以为我做的一切都对,但在黑暗模式下,我的导航栏仍然变暗
let navVC = UINavigationController(rootViewController: weatherMain)
navVC.navigationController?.navigationBar.tintColor = .white
navVC.navigationController?.navigationBar.backgroundColor = .white
navVC.modalPresentationStyle = .fullScreen
present(navVC,animated: true,completion: nil)
尽管有些答案建议使用 .backgroundColor 或 .tintColor,但它们根本没有帮助我。不知道怎么解决
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)