swift: Refreshing view controller
<p>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? </p>

<p>I tried something like this:</p>

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

}
</code></pre>

<p>but this didn't help </p>