title: core animation error
body: <p>I was messing around with Core Animation trying to get it to work, and I'm fairly sure I did everything right but when I tried to run my program Xcode threw up these bizarre errors at me:</p>
  
  <p>Undefined symbols for architecture i386:
    "_OBJC_CLASS_$_CALayer", referenced from:
        objc-class-ref in ViewController.o
    "_OBJC_CLASS_$_CABasicAnimation", referenced from:
        objc-class-ref in ViewController.o
  ld: symbol(s) not found for architecture i386
  collect2: ld returned 1 exit status</p>
  
  <p>I have no idea what any of that means. I imported the QuartzCore framework into the appropriate view controller, and here is the code I used for the animation:</p>
  
  <pre><code>UIImage *image01 = [UIImage imageNamed:@"image.png"];
  imageView = [[UIImageView alloc] initWithImage:image01];
  imageView.frame = CGRectMake(455, 150, 150, 150);
  
  CALayer *imageLayer = [CALayer layer];
  imageLayer.bounds = imageView.frame;
  imageLayer.contents = imageView;
  [view.layer addSublayer:imageLayer];
  
  CGFloat imageXAtStart = imageLayer.position.x;
  imageLayer.position = CGPointMake(335, 150);
  
  CABasicAnimation *imageAnimation = [CABasicAnimation animationWithKeyPath:@"position.x"];
  imageAnimation.fromValue = [NSNumber numberWithFloat:imageXAtStart];
  imageAnimation.toValue = [NSNumber numberWithFloat:335];
  imageAnimation.duration = 3;
  imageAnimation.beginTime = 2;
  [imageLayer addAnimation:imageAnimation forKey:@"position"];
  </code></pre>
  
  <p>If it matters, the animation is just supposed to move the image/layer from one x value to another.</p>