水平呈现ModalViewController而不是垂直呈现
如何使模态视图控制器水平呈现而不是垂直呈现。
当前代码:
ListSelectViewController *nextScreen = [[ListSelectViewController alloc] init];
[self.navigationController presentModalViewController:nextScreen animated:YES];
[nextScreen release];
How can I make the modal view controller be presented horizontally instead of vertically.
Current code:
ListSelectViewController *nextScreen = [[ListSelectViewController alloc] init];
[self.navigationController presentModalViewController:nextScreen animated:YES];
[nextScreen release];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
presentModalViewController:animated:
唯一可用的选项是:UIModalTransitionStyleCoverVertical
(默认)UIModalTransitionStyleFlipHorizontal
UIModalTransitionStyleCrossDissolve
UIModalTransitionStylePartialCurl< /code>
由于您使用的是
navigationController
,也许您想要做的是:The only options available with
presentModalViewController:animated:
are:UIModalTransitionStyleCoverVertical
(default)UIModalTransitionStyleFlipHorizontal
UIModalTransitionStyleCrossDissolve
UIModalTransitionStylePartialCurl
Since you're using a
navigationController
, perhaps what you want to do instead is: