我有我的代码,当它应该改变时我收到 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];
}
}