Error on iPhone animation project
<p>I don't understand why this won't work, I keep getting an error:</p>

<pre><code>@autoreleasepool {
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([JackAnimationAppDelegate class]));
}
</code></pre>

<p>Here is my code:</p>

<pre><code>#import "JackAnimationViewController.h"

@implementation JackAnimationViewController
@synthesize color;

- (IBAction)Button:(id)sender {

    color.animationImages = [NSArray arrayWithObjects:
                    [UIImage imageNamed:@"greenDim.png"],
                    [UIImage imageNamed:@"GreenPressed.png"],
                    [UIImage imageNamed:@"yellowDim.png"],
                    [UIImage imageNamed:@"YellowPressed.png"],nil];

            [color setAnimationRepeatCount:2];
            color .animationDuration = 4;
            [color startAnimating]; 
}

- (void)viewDidUnload {

    [self setColor:nil];
    [super viewDidUnload];
}
@end
</code></pre>
