这个问题在这里已经有了答案:
Best Answer-推荐答案 strong>
您可以通过搜索 Stack Overflow 找到答案。例如这里:
How to change the Push and Pop animations in a navigation based app
MainView *nextView = [[MainView alloc] init];
[UIView animateWithDuration:0.75
animations:^{
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[super pushViewController:nextView animated:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
}];
这在 MonoTouch 中很容易翻译,并且会变成类似(未经测试):
UIView.Animate(0.75f, 0f, UIViewAnimationOptions.CurveEaseIn, delegate {
navController.PushViewController(...);
UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromRight, navController.View, false);
}, null);
关于iphone - 改变 ViewController 的过渡方向?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/12643607/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) |
Powered by Discuz! X3.4 |