У меня есть следующий код в методе. Когда я запускаю это в симуляторе, отладчик проскакивает прямо над кодом? Что мне не хватает?
if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) ||
([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight))
{
} else {
}