1
J'ai mon code et je reçois l'erreur de EXC_BAD_ACCESS quand il est censé changer ... toutes les idées:IPhone SDK, EXC_BAD_ACCESS Changer d'image?
-(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];
}
}
Ahh, je n'y ai pas pensé. Cheers mate fonctionne parfaitement maintenant. – Harry