title: dismissModalViewControllerAnimated function not dismissing the view
body: <p>I am trying to use <code>dismissModalViewController:Animated:</code> to dismiss my view, but it is not dismissing it, no matter what I try. You can see my attempts to release the view in the <code>hideSplash</code> method at the bottom. Please, if anyone can help it would be greatly appreciated. My code posted below:</p>
  
  <pre><code>#import "SplashViewController.h"
  
  @implementation SplashViewController
  
  - (void) didReceiveMemoryWarning {
      [super didReceiveMemoryWarning];
  }
  
  - (void) viewDidUnload {
  
  }
  
  - (void) dealloc {
      [super dealloc];
  }
  
  -(void) showSplash {
      modalViewController = [[UIViewController alloc] init];
      modalViewController.view = modelView;
      [self presentModalViewController:modalViewController animated:NO];
      [activityIndicator startAnimating ];
      //[self bigcalculation];
      //[self performSelector:@selector(hideSplash) withObject:nil afterDelay:2.0];
  }
  
  - (void) viewDidAppear:(BOOL)animated {
      NSLog(@"View Did Appear");
      [self bigcalculation];
  }
  
  - (void) bigcalculation {
      NSLog(@"Big Calc Start");
      for (int i = 0; i &lt;= 648230; i++) {
          for (int j = 0; j &lt;= 1200; j++) {
  
          }
      }
      NSLog(@"Big Calc End");
      [self performSelector:@selector(hideSplash) withObject:nil];
  }
  
  - (void) hideSplash {
      NSLog(@"Hide");
      //[self dismissModalViewControllerAnimated:NO];
      //[[self parentViewController] dismissModalViewControllerAnimated:YES];
      [[self modalViewController] dismissModalViewControllerAnimated:YES];
      NSLog(@"End Hide");
  }
  
  @end
  </code></pre>