[問題] 換UIViewController時的Animation
不好意思
想請問一個關於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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 4 篇):
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章