title: Passing Data to Previous ViewController by dismissing Present ViewController
body: <p>I have 2 <code>ViewControllers</code></p>
  
  <ol>
  <li><code>ViewControllerA</code>,</li>
  <li><code>ViewControllerB</code></li>
  </ol>
  
  <p><code>ViewControllerB</code> is to show <code>popUpView</code> and another is my <code>mainViewController</code>.<br>
  When I press cancel button in <code>popUpView</code> I dismiss the present <code>ViewController</code> (i.e <code>ViewControllerB</code>) and try to pass some data to <code>ViewControllerA</code>.<br>
  I tried to print value in <code>viewWillAppear()</code> function of <code>ViewControllerA</code> but after dismiss I am not receiving any data from <code>ViewControllerB</code>.</p>
  
  <p>Can anyone help me out how to solve this?</p>