title: Warning about window hierarchy
body: <p>I having a warning like this in my debugger, What does this mean?</p>
  
  <p><code>Warning: Attempt to present &lt;RootViewViewController: 0x134ce9c0&gt; on &lt;MovieViewController: 0xa967290&gt; whose view is not in the window hierarchy!</code></p>
  
  <p>I also make the <code>MovieViewController</code> as the initial view controller in Storyboard, I am also using ARC.</p>
  
  <p>NOTE: This doesnt appear when I add two <code>[super viewDidLoad];</code> 1 in the middle in lowest part of the <code>viewDidLoad</code>,which is wrong.</p>
  
  <p>Here is my implementation of the <code>MovieViewController</code>:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      self.view.backgroundColor = [UIColor whiteColor];
  
      NSString *moviePath = [[NSBundle mainBundle] pathForResource:@"gameopening" ofType:@"m4v"];
      self.moviePlayer = [AVPlayer playerWithURL:[NSURL fileURLWithPath:moviePath]];
      [self.moviePlayer play];
  
      // Create and configure AVPlayerLayer
      AVPlayerLayer *moviePlayerLayer = [AVPlayerLayer playerLayerWithPlayer:self.moviePlayer];
      moviePlayerLayer.bounds = CGRectMake(0, 0, 1024, 768);
      moviePlayerLayer.position = CGPointMake(515,385);
      moviePlayerLayer.borderColor = [UIColor clearColor].CGColor;
      moviePlayerLayer.borderWidth = 3.0;
      moviePlayerLayer.shadowOffset = CGSizeMake(0, 3);
      moviePlayerLayer.shadowOpacity = 0.80;
  
      // Add perspective transform
  
      [self.view.layer addSublayer:moviePlayerLayer];    
  
      [self performSelector:@selector(loadingView) withObject:nil afterDelay:33.0];  
      UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGesture:)];
      tapGesture.numberOfTapsRequired = 1;
      [self.view addGestureRecognizer:tapGesture];
  
  }
  
  - (void)handleTapGesture:(UITapGestureRecognizer *)sender {
  
      if (sender.state == UIGestureRecognizerStateEnded) {
          UIImageView *loadingView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)]; 
          loadingView.image = [UIImage imageNamed:@"Load.png"];
          [self.view addSubview:loadingView];
          [self performSelector:@selector(mainV) withObject:nil afterDelay:2.0];  
      }
  
  }
  -(void)loadingView{
  
          UIImageView *loadingView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)];  
          loadingView.image = [UIImage imageNamed:@"Load.png"];
          [self.view addSubview:loadingView];
          [self performSelector:@selector(mainV) withObject:nil afterDelay:2.0];  
  
  }
  -(void)mainV {
  
          moviePlayer = nil;
          UIStoryboard *sb = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
          UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"mainViewController"];
          vc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
          [self presentViewController:vc animated:YES completion:NULL];   
  }
  </code></pre>
  
  <p>Help would be much appreciated :)</p>