Поворот экрана iOS

У меня есть программа с несколькими ViewController.

В некоторых мне нужен только портретный режим, а в других мне нужен только ландшафтный режим.

Когда я прихожу из портретного viewController, система должна автоматически помещать новый viewController в альбомный.

Как я могу это сделать?


person ButterBeast    schedule 15.03.2013    source источник


Ответы (1)


- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationLandscapeLeft;
}

это может помочь

http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/RespondingtoDeviceOrientationChanges/RespondingtoDeviceOrientationChanges.html

person g89n7man    schedule 15.03.2013
comment
Я использую - (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) ориентацию и - (UIInterfaceOrientation) preferredInterfaceOrientationForPresentation, но ничего из этого не запускается? Не могу найти причины, почему. - person ButterBeast; 15.03.2013