Ios6 presentViewController赢得';不要垂直走

Ios6 presentViewController赢得';不要垂直走,ios6,Ios6,这段代码显示了我的新视图控制器,但它是从右侧输入的,而不是从底部向上输入的。我不知道如何让它做垂直动画。有什么想法吗 UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:newDeal]; navigationController.modalTrans

这段代码显示了我的新视图控制器,但它是从右侧输入的,而不是从底部向上输入的。我不知道如何让它做垂直动画。有什么想法吗

UINavigationController *navigationController = [[UINavigationController alloc]
                                            initWithRootViewController:newDeal];
navigationController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentViewController:navigationController animated:YES completion: nil];

我找到了-我的segue设置为“推”而不是“模态”。一旦我将样式设置为“模态”,并将过渡设置为“覆盖垂直”,它就可以完美地工作