【发布时间】:2018-01-15 10:37:45
【问题描述】:
我创建了一个显示列表的弹出窗口,其中我将文本发送到另一个视图控制器,但是当我关闭弹出窗口时,导航项消失了,我已经没有搜索任何内容来解决这个问题。在弹出框中发送选定列表项的代码是这样的:
Shared.shared.filialNome = self.filiais[indexPath.row].razaoSocial
self.recebeCodigo = self.filiais[indexPath.row].codigo
Shared.shared.codigoFilial = self.recebeCodigo
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let newViewController = storyBoard.instantiateViewController(withIdentifier: "AniversarioViewController") as! AniversarioViewController
self.present(newViewController, animated: true, completion: nil)
跟随类型 = 模态 我尝试将 Present 称为 Popover 但错误仍然存在,似乎它没有完全关闭 VC,有人可以帮助我。
【问题讨论】:
-
这种行为似乎在 iOS 10/11 的某个地方发生了变化。只需使用 setNavigationBarHidden 方法在需要的地方覆盖它。
-
可以分享项目。将在 ios 11 上检查一项技术
-
你是如何关闭弹出窗口的??
-
igraczech,方法我已经用过了,还是没有成功