これはあなたを助けることができるbであり、それをチェックアウト:
coverView.layer.anchorPoint=CGPointMake(0, .5);
coverView.center = CGPointMake(coverView.center.x - coverView.bounds.size.width/2.0f, coverView.center.y);
NSLog(@"%f",coverView.layer.anchorPoint.y);
[UIView animateWithDuration:.5 delay:0 options:UIViewAnimationCurveEaseIn animations:^{
coverView.transform = CGAffineTransformMakeTranslation(0,0);
CATransform3D _3Dt = CATransform3DIdentity;
_3Dt =CATransform3DMakeRotation(3.141f/2.0f,0.0f,-1.0f,0.0f);
_3Dt.m34 = 0.001f;
_3Dt.m14 = -0.0015f;
coverView.layer.transform =_3Dt;
} completion:^(BOOL finished){
if (finished) {
[self animateCurrentViewController];
[self toolBarAndNavigationBarNeedToShow:YES];
}
}];
CoverView私はgithubの上のコードのibookオープン効果のデモを持って何が、ウルの見解
同様のを見ることができます質問: http://stackoverflow.com/questions/8499601/open-close-unfolding-book-animation-in-ibooks –
返信ありがとうございますが、probはUIViewアニメーションとUiViewControllerアニメーションの違いがあります。 – munibsiddiqui
2つのView Controller間を移動する場合は、これをカスタムセグレットとして実装することもできます。このコードは、2つのビュー間での遷移と似ています。私は最後の年、Core AnimationのWWDCセッションビデオには、ビデオの終わりにカスタムセグ(ファイアー:P付き)があったと思います。 –