1

I have 2 view controllers. Profile and SignIn. Actually Profile is root view controller. And When I press sign in button, signInViewController dismiss. How to update or refresh profileViewController after this?

I tried something like this:

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

}

but this didn't help

1 Answers1

0

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

Community
  • 1
  • 1
Azephiar
  • 501
  • 6
  • 19