UIViewAnimationTransitionCurlを左右方向に使用する方法はありますか?連絡先アプリに似たものを探しています:
2 に答える
2
iOS 5をターゲットにしている場合は、を使用しますUIPageViewController
。WWDC 2011のUIViewControllerContainmentの実装ビデオの最後の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 に答える