【发布时间】:2010-10-30 03:03:10
【问题描述】:
我在方法中有以下代码。当我在模拟器中运行它时,调试器会直接跳过代码??我错过了什么?
if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) ||
([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight))
{
} else {
}
【问题讨论】:
-
你的意思是它跳过了if和else,还是总是去else?
-
是的 if 和 else 中有数据;是的,它跳过了整个事情。
标签: iphone cocoa-touch ios-simulator