Je fais pivoter une vue de 45 degrés à chaque déplacement. Voici mon code. Le problème ici est que la vue est tournée seulement une fois. Après cela, il n'y a pas de rotation. Quelle sera la raison? Toute aideAfficher la rotation dans les touches Déplacé
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:0];
dialView.transform = CGAffineTransformMakeRotation(45* M_PI/180);
[UIView commitAnimations];
}