📜  透明导航栏 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:34.739000             🧑  作者: Mango

代码示例1
self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default) //UIImage.init(named: "transparent.png")
self.navigationController?.navigationBar.shadowImage = UIImage()
self.navigationController?.navigationBar.isTranslucent = true
self.navigationController?.view.backgroundColor = .clear