弹出视图时,我使用以下代码:
[UIView beginAnimations: @"Showinfo" context: nil];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:0.6];
[self.navigationController popViewControllerAnimated:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO];
[UIView commitAnimations];
此代码在弹出视图时会产生翻转效果,适用于iOS 7.0及更高版本。当它在6.1中时,它只显示没有任何翻转效果的正常滑动动画。我不确定哪个部分6.1不喜欢,哪些可能是可能的修复。
P.S。我正在使用pushViewControllerAnimated
的类似代码,它可以显示翻转,它只能用于pop。
谢谢!