- (void) setOrientation { UIInterfaceOrientation toOrientation = self.interfaceOrientation; // toOrientation = [[UIDevice currentDevice] ориентация];Ориентация на iPad Задача
if (toOrientation == UIInterfaceOrientationLandscapeLeft ||
toOrientation == UIInterfaceOrientationLandscapeRight)
{
}else if(toOrientation == UIInterfaceOrientationPortrait
|| toOrientation == UIInterfaceOrientationPortraitUpsideDown){
}
}
Когда я буду двигаться IPad в ландшафтном положении с позиции Портрет, портрет состояние получают казнены. Из-за этого мой экран искажен.
Не могли бы вы прояснить, каков ваш вопрос? – jrtc27
Чтобы помочь вам удалить код, вы можете использовать эту функцию: UIInterfaceOrientationIsLandscape (yourOrientation) – CedricSoubrie