Yes. First you need to tell your app that you support landscape mode. You do this in your project file, under the general tab of your apps target.
Then in your view controller you need to implement the methods under the section "Configuring the View Rotation Settings". Specifically this would look like:
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight
}
- (BOOL)shouldAutorotate
{
return YES;
}
Notice the function supportedInterfaceOrientations that we return a mask.
When you present modally your view should automatically rotate. You might also need to implement those same methods in your previous view controller so that when you go back it knows how to orient itself.