Я не понимаю, почему это не сработает, я получаю сообщение об ошибке:
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([JackAnimationAppDelegate class]));
}
Вот мой код:
#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