1
我有我的代码,我收到当它想改变...任何想法的EXC_BAD_ACCESS错误:iPhone SDK,EXC_BAD_ACCESS更改图像?
-(void) updatePlay {
UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"bursttt" ofType:@"png"]];
if (CGRectIntersectsRect(pinend.frame, balloonbit1.frame)){
[maintimer invalidate];
accelManeger.delegate = nil;
ball.image = img;
[UIImageView beginAnimations:nil context:NULL];
[UIImageView setAnimationDuration:0.3];
ball.transform = CGAffineTransformMakeScale(2, 2);
[UIImageView commitAnimations];
}
}
啊,我没有想到这一点。欢呼队友现在完美的作品。 – Harry 2010-04-08 12:50:12