[問題] 換UIViewController時的Animation

看板MacDev作者 (...)時間15年前 (2010/01/19 21:11), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
不好意思 想請問一個關於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
文章代碼(AID): #1BLQ-2_b (MacDev)
文章代碼(AID): #1BLQ-2_b (MacDev)