【发布时间】:2020-01-29 19:05:57
【问题描述】:
我使用以下代码打开modal。
我正在使用.fullScreen,因为我需要在此controller 被解雇后调用viewWillAppear。
let controller = self.storyboard!.instantiateViewController(withIdentifier: "Login")
controller.modalPresentationStyle = .fullScreen
self.present(controller, animated: true, completion: nil)
当控制器出现时:
我的问题是,如何更改顶部颜色以保持与导航相同?
【问题讨论】:
-
您正在开发哪个 iOS 版本?
-
我使用的是 iOS 13