Je sais que cela a été demandé mille fois et les gens diront que le @pagecurl sera rejeté.PAGECURL ANIMATION SOUS-TYPE
J'ai essayé de raisonner avec le client, mais ils insistent sur le fait qu'ils veulent pousser l'application avec cette fonction et qu'elle aura une chance de ne pas être rejetée.
Le problème est que si j'essaye animation.subtype, l'animation ne l'écoutera pas. Si je dispose du mode d'orientation en mode paysage, le curl de la page commencera à partir d'une autre position même si j'essaye de définir le type d'animation.
Quelqu'un sait ce que je peux faire à ce sujet?
Le code est ci-dessous:
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
// animation.subtype = kCATransitionFromTop;
if(rotation == UIInterfaceOrientationPortraitUpsideDown){
animation.subtype = kCATransitionFromLeft;
}else if(rotation == UIInterfaceOrientationPortrait){
animation.subtype = kCATransitionFromRight;
}else if(rotation == UIInterfaceOrientationLandscapeRight){
animation.subtype = ....
}else if(rotation == UIInterfaceOrientationLandscapeLeft){
animation.subtype = ....
}
animation setDuration:0.35];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
animation.type = @"pageCurl";
Le top 2 semble fonctionner mais je ne peux pas changer quand l'orientation est en mode paysage.
Merci beaucoup.