title: Calling Function when view returns from subview | Swift
body: <p>I have a 'PopUp' style view which is displayed as a child view so that it appear infront of the parent view controller like this:</p>
  
  <pre><code>let popOverView = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("newProjectPopup") as! AddProjectViewController
  self.addChildViewController(popOverView)
  popOverView.view.frame = self.view.frame
  self.view.addSubview(popOverView.view)
  popOverView.didMoveToParentViewController(self)
  </code></pre>
  
  <p>To close the popup view I am using </p>
  
  <pre><code>self.view.removeFromSuperview()
  </code></pre>
  
  <p>This works great besides from the fact that it does not call the <code>viewWillAppear</code> or <code>viewDidAppear</code> methods in the parent view. I need to update information in the parent view controller when the popup is dismissed. How can I do this?</p>