title: Problem Using CATransitions to switch views
body: <p>So I was attempting to use this code to switch between views:</p>
  
  <pre><code>CATransition *applicationLoadViewIn = [CATransition animation];
  
      [applicationLoadViewIn setDuration:1];
  
      [applicationLoadViewIn setType:kCATransitionReveal];
  
      [applicationLoadViewIn setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn]];
  
      MyViewControllerClass *theControllerIAmSwitchingTo = [[MyViewControllerClass alloc] init];
  
      [[theControllerIAmSwitchingTo.view layer] addAnimation:applicationLoadViewIn forKey:kCATransitionReveal];
  </code></pre>
  
  <p>But, the code doesn't work. There are no errors, and the code executes fine, but it just doesn't do anything. What do I have wrong here?</p>