开发者

presentModalViewController horizontally instead of vertically

开发者 https://www.devze.com 2023-03-08 16:10 出处:网络
How can I make the modal view controller be presented horizontally instead of vertically. Current code:

How can I make the modal view controller be presented horizontally instead of vertically.

Current code:

开发者_StackOverflow中文版ListSelectViewController *nextScreen = [[ListSelectViewController alloc] init];
[self.navigationController presentModalViewController:nextScreen animated:YES];
[nextScreen release];


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:

[self.navigationController pushViewController:nextScreen animated:YES];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号