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];
精彩评论