【发布时间】:2013-04-05 21:42:43
【问题描述】:
我正在尝试从图像数组在 iPhone 中制作一个简单的动画图像:
- (void)viewDidLoad {
NSArray *imageArray;
imageArray = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"sun1"],
[UIImage imageNamed:@"sun2"],
nil];
fadeImage.animationImages = imageArray;
fadeImage.animationDuration = 1;
[imageArray release]; //==== HERE IS WHERE I GET THE ERROR ======
我该如何解决这个问题?
【问题讨论】:
-
您可以禁用 ARC 作为您的选择转到 [此链接][1],然后尝试一下。 [1]:stackoverflow.com/questions/6646052/…
-
Xcode 有工具“Edit:Refactor:Convert to Objective-C ARC”。
标签: iphone objective-c animation automatic-ref-counting