我在一个方法中有以下代码。当我在模拟器中运行时,调试器会直接跳过这段代码? 我漏掉了什么吗?
if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) ||
([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight))
{
} else {
}