0
我使用以下代碼來對動畫的視圖倒裝過渡:當我切換到該視圖中UIPageViewController內側(在上面的代碼段self.view)取消設置一個UIView的動畫過渡
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
[self.view addSubview:anotherViewController.view];
[UIView commitAnimations];
然而, ,視圖翻轉而不是從左側或右側滑入。
如何在視圖翻轉後「取消」此動畫過渡?我在轉換完成後嘗試調用[self.view.layer removeAllAnimations],但它沒有效果。