https://github.com/ECSlidingViewController/ECSlidingViewControllerに基づいた特別なアニメーションを作成したいと思います。
ズームアニメーションは下の画像のようです。
PI / 4でメインView Controllerを回転させたいだけです。下の画像のように。
以下のコードのように EndState 変換を試みましたが、うまくいきません。
- (void)topViewAnchorRightEndState:(UIView *)topView anchoredFrame:(CGRect)anchoredFrame {
CATransform3D toViewRotationPerspectiveTrans = CATransform3DIdentity;
toViewRotationPerspectiveTrans.m34 = -0.003;
toViewRotationPerspectiveTrans = CATransform3DRotate(toViewRotationPerspectiveTrans, M_PI_4, 0.0f, -1.0f, 0.0f);
topView.layer.transform = toViewRotationPerspectiveTrans;
topView.layer.position = CGPointMake(anchoredFrame.origin.x + ((topView.layer.bounds.size.width * MEZoomAnimationScaleFactor) / 2), topView.layer.position.y);
}
ヘルプ、ポインタ、またはサンプル コード スニペットをいただければ幸いです。