https://github.com/ECSlidingViewController/ECSlidingViewController을 기반으로하는 특수 애니메이션을 제작하고 싶습니다.어떻게 ECSlidingViewController 용 iOS에서 3D 변형을 만들 수 있습니까?
줌 애니메이션은 아래 그림과 같습니다.
는 I 화상은 아래와 같이 PI/(4)에 의해 메인 뷰 컨트롤러를 회전 할.
나는 코드를 아래와 같이 변환 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);
}
모든 도움말, 포인터 또는 예제 코드 스 니펫은 정말 감사하겠습니다!
당신이 작업 얻을 관리 했나 : 같은
애니메이션 기능은 이제 볼 것인가? 내가 똑같은 일을하려고 노력하고있어 어떤 도움을 주시면 감사하겠습니다. –