Чтобы установить ориентацию, UIViewController или аналогичный имеет функцию, которую вы можете перезаписать.
В частности, посмотрите этот apple doc и прокрутите вниз до "shouldAutorotateToInterfaceOrientation:".
Код для включения ландшафтного режима должен выглядеть примерно так:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if ((interfaceOrientation==UIInterfaceOrientationPortrait)||(interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown))
{
return NO;
}
else if ((interfaceOrientation==UIInterfaceOrientationLandscapeLeft)||(interfaceOrientation==UIInterfaceOrientationLandscapeRight))
{
return YES;
}
else {
return YES;
}
}
Этот код должен содержаться в объекте контроллера представления и автоматически вызываться при запуске контроллера представления.