如果我致电[[UIDevice currentDevice] orientation]
。它会给我定位而不是位置。那么有人可以给我一个建议吗?
答案 0 :(得分:0)
UIInterfaceOrientation *orientation = [[UIApplication sharedApplication] statusBarOrientation];
if (UIInterfaceOrientationIsPortrait(orientation)) {
} else if (UIInterfaceOrientationIsLandscape(orientation)) {
}