作者haman (...)
看板MacDev
标题[问题] 换UIViewController时的Animation
时间Tue Jan 19 21:11:27 2010
不好意思
想请问一个关於Animation的问题
我在主要的ViewController A中使用
[UIView beginAnimations: @"View Flip" context: nil];
[UIView setAnimationDuration: 1.0f];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView: self.view cache: YES];
mySaveViewController = [[SaveViewController alloc] init];
[self.view addSubview: mySaveViewController.view];
[UIView commitAnimations];
而进到了下一个UIViesController B
但是我想要从B回到A时 使用了
[UIView beginAnimations: @"View Flip" context: nil];
[UIView setAnimationDuration: 1.0f];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView: self.view cache: YES];
[self.view removeFromSuperview];
[UIView commitAnimations];
却没有出现翻页的动画效果
想请问一下该如何解决这个问题]
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.18.218