title: CATransaction Not Animating
body: <p>I've created a new View-based Application in XCode.</p>
  
  <p>In the ViewController, the only code that I've modified looks like this:</p>
  
  <pre><code>- (void)viewDidLoad {
  [super viewDidLoad];
  
  UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];
  newView.backgroundColor = [UIColor redColor];
  [self.view addSubview:newView];
  
  
  [CATransaction begin];
  [CATransaction setValue:[NSNumber numberWithFloat:0.5f] forKey:kCATransactionAnimationDuration];
  
  newView.layer.frame = CGRectMake(20,20,220,220);
  
  [CATransaction commit];
  }
  </code></pre>
  
  <p>It should create a red square that animates for half a second as soon as the application loads. The problem is that it does not animate. I can't figure out why. I created this simple project to isolate all variables, and yet it still doesn't work.</p>
  
  <p>Can anyone help out or point me in the right direction of some Core-Animation reading material. I've already gone through all of Apple's stuff.</p>