有没有一种特殊的方法来定位iPhone?我不需要它的度数或弧度,我想要它返回一个UIInterfaceOrientation对象.我只是需要它来做一个if-else struct ,比如
if(currentOrientation==UIInterfaceOrientationPortrait ||currentOrientation==UIInterfaceOrientationPortraitUpsideDown) {
//Code
}
if (currentOrientation==UIInterfaceOrientationLandscapeRight ||currentOrientation==UIInterfaceOrientationLandscapeLeft ) {
//Code
}
提前谢谢!