【发布时间】:2017-01-18 05:39:52
【问题描述】:
如何呈现具有透明背景的UINavigationController。没有导航栏的常规视图工作正常,但是当我将 navigationBar 添加到相同的代码时,我得到一个黑屏而不是 .clear
主视图控制器
let vc = NewRquestViewController()
vc.modalPresentationStyle = .overCurrentContext
vc.mapView = self.mapView
let nvc = UINavigationController(rootViewController:vc)
self.present(nvc, animated: true, completion: nil)
第二个视图
view.isOpaque = false
self.view.backgroundColor = .clear
【问题讨论】:
-
请您详细说明您的问题以获得更好的想法。