0
私は、停止せずにY軸の周りを360度回転させたUIViewの効果を得たいです。UIViewノンストップフリップアニメーション
私は、停止せずにY軸の周りを360度回転させたUIViewの効果を得たいです。UIViewノンストップフリップアニメーション
あなたのビューコントローラに以下のコードを入れてください:
CATransform3D t3d = CATransform3DIdentity;
// m34 sets the amount of perspective
t3d.m34 = 1.0/-1000.0;
[UIView animateWithDuration:1.0
delay:0.0
options:UIViewAnimationCurveLinear
animations:^{
self.view.layer.transform = CATransform3DRotate(t3d, M_PI, 0, 1, 0);
}
completion:^(BOOL finished) {
[UIView animateWithDuration:1.0
delay:0.0
options:UIViewAnimationCurveLinear
animations:^{
self.view.layer.transform = CATransform3DRotate(t3d, 2*M_PI, 0, 1, 0);
}
completion:^(BOOL finished) {
self.view.layer.transform = CATransform3DIdentity;
}];
}];
誰もが私に知らせて、これをクリアする方法上の任意の提案を持っている場合には、かなり厄介だ;)
おかげで病気にそれを試してみてください – Eyal