作者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