我有2个视图控制器。个人资料和登录。实际上Profile是root视图控制器。当我按下登录按钮时,signInViewController被忽略。如何在此之后更新或刷新profileViewController?
我试过这样的事情:
override func viewWillAppear(animated: Bool) {
self.navigationController?.navigationBar.topItem?.title = "\(name)"
}
但这没有帮助
答案 0 :(得分:0)
You can user protocols to pass data between viewControllers, to do that you can refer this question