0
我是檢查設備和接口方向programetically但每次它甚至在portraite模式轉爲橫向也 這裏是我的代碼,請給我解決方案: -iPad的定位檢查錯誤
if ([[UIDevice currentDevice]orientation] == UIDeviceOrientationLandscapeLeft||[[UIDevice currentDevice] orientation]== UIDeviceOrientationLandscapeRight || [self interfaceOrientation] == UIInterfaceOrientationLandscapeLeft || [self interfaceOrientation] == UIInterfaceOrientationLandscapeRight)
{
}
else
{
}