の開始時にジャンプし、私は、Windows Phoneのように、タイル反転効果を作成するために、7層位置は、(コア)アニメーションだから、
をしようとしているこれまでのところ、私は次のコードを持っているが、私はのカップルを持っていますクエリ。私の私の赤い四角(シンプルなUIビュー)は、アニメーションの開始時に右に変換する方法来る
CALayer *layer = self.theRedSquare.layer;
CATransform3D initialTransform = self.theRedSquare.layer.transform;
initialTransform.m34 = 1.0/-1000;
[UIView beginAnimations:@"Scale" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
layer.transform = initialTransform;
layer.anchorPoint = CGPointMake(-0.3, 0.5);
CATransform3D rotationAndPerspectiveTransform = self.theRedSquare.layer.transform;
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, M_PI , 0 , -self.theRedSquare.bounds.size.height/2, 0);
layer.transform = rotationAndPerspectiveTransform;
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
1.?
2.親ビューの位置を設定することは可能ですか?現時点では、私はそれを現在のビューに相対して任意に設定しています。
ありがとうございます。アニメーション中アニメーション
前
(正方形が右にシフトしている気づく)
アニメーション後(正方形を通知は右にシフトしています)
ビデオが追加されました:example video
すばらしい、ありがとう! – JonB
アニメーションをアニメーション化するにはどうすればよいですか? (そのフリップイン)私はこれを理解するために何時間も試みてきました。 – Frankrockz