0

有什么方法可以在左右方向使用 UIViewAnimationTransitionCurl 吗?我正在寻找类似于联系人应用程序的东西:

在此处输入图像描述

4

2 回答 2

2

如果您的目标是 iOS 5,请使用UIPageViewController. WWDC 2011的实现 UIViewController包含视频的最后 15 分钟描述了如何使用它。

于 2012-02-03T23:53:30.933 回答
0

如果您不介意 iOS 5 作为要求,您可以使用新的UIPageViewController

否则你可以尝试这样的事情:

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;

干杯....

于 2012-02-03T22:45:17.773 回答