title: how to close the view controller that I open with "replace" segue
body: <p>I've unsuccessfully tried:</p>
  
  <pre><code>1. [self dismissViewControllerAnimated:YES completion:Nil];
  
  
  
   2. [[self parentViewController] dismissViewControllerAnimated:YES
      completion:Nil];
  
  
  
   3. //from the parent view controller using a delegate 
          -(void)closeReplaceController
          {
              DLog(@"closeReplaceController");
              [self dismissViewControllerAnimated:YES completion:Nil];
  
          }
  </code></pre>