title: How to dismiss a view controller and return to it's parent view controller?
body: <p>I have a popup view from another view controller with an XIB file. It launches from a parent VC (<code>detailViewController</code>) and but the dismiss code is within its own VC (<code>KNThirdViewController</code>)</p>
  
  <p>I'm using this code: <a href="https://github.com/kentnguyen/KNSemiModalViewController/blob/master/KNSemiModalViewControllerDemo/KNThirdViewController.xib" rel="nofollow">https://github.com/kentnguyen/KNSemiModalViewController/blob/master/KNSemiModalViewControllerDemo/KNThirdViewController.xib</a></p>
  
  <p>When this is called from (<code>KNThirdViewController</code>)</p>
  
  <pre><code>- (IBAction)dismissButtonDidTouch:(id)sender {
      [self dismissModalViewControllerAnimated:NO];
  }
  </code></pre>
  
  <p>The app returns to the <code>rootViewController</code> and not the <code>detailViewController</code>. It should simply dismiss itself (the <code>KNThirdViewController</code> popup VC) and return the user to <code>detailViewController</code>.</p>
  
  <p>The view controller is presented with:</p>
  
  <pre><code>-(void)scriviBtnPress {
  
  // You can also present a UIViewController with complex views in it
  // and optionally containing an explicit dismiss button for semi modal
  [self presentSemiViewController:semiVC withOptions:@{
   KNSemiModalOptionKeys.pushParentBack    : @(YES),
   KNSemiModalOptionKeys.animationDuration : @(0.5),
   KNSemiModalOptionKeys.shadowOpacity     : @(0.3),
   }];
  </code></pre>
  
  <p>}</p>