Есть ли специальный метод для ориентации iPhone? Мне это не нужно в градусах или радианах, я хочу, чтобы он возвращал объект UIInterfaceOrientation. Мне просто нужно это для построения if-else вроде
if(currentOrientation==UIInterfaceOrientationPortrait ||currentOrientation==UIInterfaceOrientationPortraitUpsideDown) {
//Code
}
if (currentOrientation==UIInterfaceOrientationLandscapeRight ||currentOrientation==UIInterfaceOrientationLandscapeLeft ) {
//Code
}
Спасибо заранее!