2013-04-25 5 views
9

iOSアプリでページフリップ効果を実装する必要があります。しかし、UIPageViewControllerや他のサードパーティ製のライブラリと同じように、その効果はページをカールさせるべきではありません。このページは、書籍ではなくグリーティングカードのページとしての厳格なものでなければなりません。私は以下のイメージのように何かを実装する必要があります。iphone:カールしないでページフリップ効果を実装する方法は?

enter image description here

いずれかが任意の提案やサンプルコードを提供することができれば、私は本当にいただければ幸いです。

ありがとうございます!

+1

あなたはより多くの情報 –

+0

ためhttp://markpospesel.wordpress.com/tag/catransform3d/を見なければならないあなたは私にあなたのアプリの名前を伝えることができますこのアニメーションを見たことがあります – Leena

+0

@Leenaそのアプリストアではまだありません。私はこれに取り組んでいます。 –

答えて

2

あなたはこれを行うことができます。

[UIView beginAnimations:@"View Flip" context:nil]; 
[UIView setAnimationDuration:0.3]; 
[UIView setAnimationCurve:UIViewAnimationTransitionFlipFromLeft]; 
[UIView setAnimationTransition: 
UIViewAnimationTransitionCurlUp forView:self.view cache:NO]; 
[UIView commitAnimations]; 
1

これはあなたのための参考になります。

-(void) animateMe:(UIViewAnimationTransition)style 
{ 
    [self playCardSound]; 
    [UIView beginAnimations:@"flipview" context:nil]; 
    [UIView setAnimationDuration:0.5]; 
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 
    [UIView setAnimationTransition: style forView:self.view cache:YES]; 
    [UIView commitAnimations]; 
} 

が好き、それを呼び出します。

[self animateMe:UIViewAnimationTransitionFlipFromLeft]; 
[self animateMe:UIViewAnimationTransitionFlipFromRight]; 
関連する問題