title: Adding another view controller's view as subview
body: <p>I am trying to get a popup effect and want to design the popup view in another view controller so i can use the xib to do it.</p>
  
  <p>When i used the presentViewController or pushViewController and set the background to transparent, i end up seeing the Window's background color.</p>
  
  <p>I tried this code to add subview to the navigation controller's view so that i can have the Info view cover the entire screen with a transparent background. I also have tab bar to cover up as well.  </p>
  
  <pre><code>InfoVC *vc = [[InfoVC alloc] initWithNibName:@"InfoVC" bundle:nil];
  [self.navigationController.view addSubview:vc.view];
  </code></pre>
  
  <p>My problem is inside my InfoVC when i try to dismiss it, the app will crash with some EXC_BAD_ACCESS message:</p>
  
  <pre><code>[self.view removeFromSuperview];
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I found a way to stop it crashing but setting the InfoVC as a property in the MainVC.  I think the reason for crash is when i call "self.view" in the action inside the InfoVC, it doesn't know that self is the InfoVC inside MainVC.</p>