I am trying to go from a viewcontroller that supports landscape (while in landscape mode), to one that explicitly doesn\'t (and shouldn\'t) support landscape. I\'m doing thi
The answer by Sahil above is deprecated since iOS 6.0. However, the following seems to do the same trick:
UIViewController *viewController = [[UIViewController alloc] init];
[self presentViewController:viewController animated:NO completion:nil];
[self dismissViewControllerAnimated:NO completion:nil];
[viewController release];