swift:刷新视图控制器

时间:2016-04-07 10:10:48

标签: ios swift refresh

我有2个视图控制器。个人资料和登录。实际上Profile是root视图控制器。当我按下登录按钮时,signInViewController被忽略。如何在此之后更新或刷新profileViewController?

我试过这样的事情:

 override func viewWillAppear(animated: Bool) {
    self.navigationController?.navigationBar.topItem?.title = "\(name)"

}

但这没有帮助

1 个答案:

答案 0 :(得分:0)

You can user protocols to pass data between viewControllers, to do that you can refer this question