- (void) setOrientation {UIInterfaceOrientation toOrientation = self.interfaceOrientation;// toOrientation = [[UIDevice currentDevice] direction];
if (toOrientation == UIInterfaceOrientationLandscapeLeft ||
toOrientation == UIInterfaceOrientationLandscapeRight )
{
}else if(toOrientation == UIInterfaceOrientationPortrait
|| toOrientation == UIInterfaceOrientationPortraitUpsideDown){
}
}
Когда я собираюсь переместить iPad в альбомную позицию из портретной позиции, выполняется портретное условие.Из-за этого мой экран искажается.