开发者

presentModalViewController horizontally instead of vertically

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜