如何使模态视图控制器水平呈现而不是垂直呈现。
当前代码:
ListSelectViewController *nextScreen = [[ListSelectViewController alloc] init];
[self.navigationController presentModalViewController:nextScreen animated:YES];
[nextScreen release];
答案 0 :(得分:3)
presentModalViewController:animated:
可用的唯一选项是:
UIModalTransitionStyleCoverVertical
(默认)UIModalTransitionStyleFlipHorizontal
UIModalTransitionStyleCrossDissolve
UIModalTransitionStylePartialCurl
由于你使用的是navigationController
,所以你想做的可能是:
[self.navigationController pushViewController:nextScreen animated:YES];