0
UIView *superView = [self.view superview];
CATransition *animation = [CATransition animation];
animation.duration = 0.5f;
animation.timingFunction = UIViewAnimationCurveEaseInOut;
animation.fillMode = kCAFillModeForwards;
animation.type = kCATransitionFade;
animation.subtype = kCATransitionFromTop;
[root.view removeFromSuperview];
[self.view removeFromSuperview];
[superView.layer addAnimation:animation forKey:@"removeContentAnimation"];
self.view和root.view在「上海華」
當我犯這個動畫,有發生一個錯誤一點機會加入 - 雙方的意見取出從superView中立即回來。在這個快速變化之後,它正常消失。
問題不是很清楚,什麼是錯誤?什麼是self.view和root.view? – Spring