如果您知道其他所有视图都应显示该栏,则可以
viewWillDisappear将其重新设置为可见。
在Swift中:
override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) navigationController?.setNavigationBarHidden(true, animated: animated)}override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) navigationController?.setNavigationBarHidden(false, animated: animated)}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)