title: Bring overlapping UIViewController to front
body: <p>I currently have three view controllers going on in my iPhone application at the same time. <br/>
  I use a <a href="https://github.com/edgecase/ECSlidingViewController/" rel="nofollow noreferrer">slidingView</a>.</p>
  
  <p>Here is my image: </p>
  
  <p><img src="https://i.stack.imgur.com/7q2yi.png" alt="enter image description here"></p>
  
  <p>When I tap on a table view cell, I want to open a new view controller like this: </p>
  
  <p><img src="https://i.stack.imgur.com/LD55m.png" alt="enter image description here"></p>
  
  <p>(the egg is representing a new view controller.</p>
  
  <p>But as you can see my orange view controller is in front.</p>
  
  <p>How do I change this?</p>
  
  <p>The code I use to open the <code>egg-viewcontroller</code>:</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      UIViewController *boxView = [self.storyboard instantiateViewControllerWithIdentifier:@"BoxView"];
      boxView.modalPresentationStyle = UIModalPresentationFormSheet;
      boxView.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
      boxView.view.frame=CGRectMake(-50, 5, 300, 470);
      [self.view addSubview:boxView.view];
      //[self.view bringSubviewToFront:boxView];
  
  }
  </code></pre>