sto animare una vista UIImage
con questo codiceCATransform3DRotate e UIImageView
CABasicAnimation *animation;
animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
animation.duration = 1;
animation.toValue = [NSNumber numberWithFloat:M_PI];
animation.fromValue = [NSNumber numberWithInt:0];
[square.layer addAnimation:animation forKey:@"rotation"];
Tutto funziona bene, ma il mio allineamento prendere la sua posizione originale alla fine dell'animazione. Ho guardato nelle proprietà del livello e l'ho trovato:
[square.layer setTransform:CATransform3DRotate(HERE, -M_PI, 0, 0, 0)];
E io non so cosa scrivere al posto di "QUI". Potresti aiutarmi per favore? Grazie mille!
Thnaks molto Brad! – Pierre