我正在使用以下语句推送我的 View Controller :
[[self navigationController] pushViewController:self.customViewController animatedWithTransition:UIViewAnimationTransitionFlipFromLeft];
现在,当我按下后退按钮时,我想使用 uiviewanimationtransitionflipfromright 为其设置动画。
喜欢
[self.navigationController popViewControllerAnimatedWithTransition:UIViewAnimationTransitionFlipFromLeft];
我该怎么做?
谢谢
最佳答案
这可以帮助您为后退按钮中的 View 设置动画。
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:0.75];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.navigationController.view cache:NO];
[UIView commitAnimations];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelay:0.375];
[self.navigationController popViewControllerAnimated:NO];
[UIView commitAnimations];
关于iphone - 如何更改后退按钮上的弹出 View Controller 动画?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2942221/