2012-02-03 10 views

答えて

2

あなたはUIPageViewControllerを使用し、iOSの5を標的にしている場合。最後の15分のUIViewControllerコンテナの実装WWDC 2011からのビデオの使用方法が説明されています。

0

:私は連絡先アプリに似たものを探しています:

self.appDelegate = [[UIApplication sharedApplication] delegate]; 
UIViewController *srcViewController = (UIViewController *) self.sourceViewController; 
UIViewController *destViewController = (UIViewController *) self.destinationViewController; 
[UIView commitAnimations]; 
[UIView beginAnimations:@"View Flip" context:nil]; 
[UIView setAnimationDuration:1.25]; 
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView:self.appDelegate.window.rootViewController.view.superview cache:YES]; 
[srcViewController.view removeFromSuperview]; 
[UIView commitAnimations]; 
[self.appDelegate.window addSubview:destViewController.view]; 
self.appDelegate.window.rootViewController=destViewController; 

乾杯....

+0

実際に私は単純なUIViewを変更するだろう... '[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:rightPage cache:YES];'これはUIViewで機能するのですか? –

関連する問題