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