J'ai créé une animation sur mon projet qui permute entre 2 UIWebView. Quand je développais sur iOS 3.2 tout allait bien avec l'animation. Mais quand je suis passé à iOS 4.2 tout à coup tout va mal: Quel est le problème avec ces animations sur iOS 4.2?
//LeftView Animation
[UIView beginAnimations:@"leftPortrait" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:leftView cache:YES];
[leftWebView setFrame:CGRectMake(0, 0, 384, 916)];
[UIView commitAnimations];
//RightView Animation
[UIView beginAnimations:@"rightPortrait" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:rightView cache:YES];
[rightWebView setFrame:CGRectMake(0, 0, 384, 916)];
[UIView commitAnimations];
Merci!