title: How to dismiss and pop to viewcontroller simultaneously
body: <p>My home viewcontroller is Tabbarcontroller</p>
  
  <ul>
  <li>From tabbar i navigate to (A) Viewcontroller (TabarViewcontroller
  -> A (Viewcontroller)</li>
  <li>From A (Viewcontroller) i push  (B) Viewcontroller</li>
  <li>From B (Viewcontroller) i Present  (C) Viewcontroller</li>
  <li>When i dismiss (c) Viewcontroller i want to show (A) Viewcontroller
  or (Home) TabbarviewController</li>
  </ul>
  
  <p>So, I want to first dismiss presented viewcontroller and then I want to pop my previous pushed controller</p>
  
  <p>Here is my navigation flow </p>
  
  <pre><code>From Tabbarviewcontroller 
  1-  let aVC = self.storyboard?.instantiateViewController(withIdentifier: "a") as! OrderListingViewController
       self.navigationController?.pushViewController(aVC, animated: true)
  
  From A viewcontroller 
  2- let bVC = self.storyboard?.instantiateViewController(withIdentifier: "b") as! OrderListingViewController
       self.navigationController?.pushViewController(bVC, animated: true)
  
  From B viewcontroller 
          let cVC = self.storyboard?.instantiateViewController(withIdentifier: "c") as! RejectOrderViewController
          cVC.providesPresentationContextTransitionStyle = true
          cVC.definesPresentationContext = true
          cVC.modalPresentationStyle=UIModalPresentationStyle.overCurrentContext
          self.tabBarController?.presentVC(cVC)
  </code></pre>
  
  <p><strong>so from C Viewcontroller when i dismiss i want to show Tabbarviewcontroller or (A) ViewController</strong></p>