gpt4 book ai didi

iphone - UIModalTransitionStyleFlipHorizo​​ntal 在横向模式下垂直翻转

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:23:24 25 4
gpt4 key购买 nike

我正在开发横向模式的应用程序。在横向模式下执行 UIModalTransitionStyleFlipHorizo​​ntal 翻转时,它会垂直翻转。

有什么办法可以解决吗?

代码如下:

InfoViewController *vc = [[InfoViewController alloc] initWithNibName:@"InfoViewController" bundle:nil];
vc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:vc animated:YES];
[vc release];

最佳答案

MyViewController *viewController = [[MyViewController alloc] init];

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:YES];
[self.navigationController pushViewController:viewController animated:NO];
[UIView commitAnimations];
[viewController release];

检查这个...

关于iphone - UIModalTransitionStyleFlipHorizo​​ntal 在横向模式下垂直翻转,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13795656/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com