[英]navigation bar doesn't show inside popup
我正在使用PopupDialog
库,并且其中有一个按钮。 当用户单击此按钮时,我想打开一个带有导航栏的视图控制器。
我在PopupDialog
控制器内的功能:
func cliclOnContent(tapGestureRecognizer: UITapGestureRecognizer)
{
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let controller = storyboard.instantiateViewController(withIdentifier: "ContentAJobViewController") as! ContentAJobViewController
controller.job_id = self.gh.id
self.present(controller, animated: true, completion: nil)
}
但是当我的控制器显示视图( ContentAJobViewController
)时,我的导航栏处于隐藏状态:
我的图书馆链接: https : //github.com/Orderella/PopupDialog
为了保持当前的导航控制器,您必须使用self.show(controller, sender: self)
。 但是在这种情况下,我不明白您在哪里使用PopupDialog。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.