查iPhone iPad Orientation,用 statusBarOrientation, 例如:
if ([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationLandscapeLeft || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationLandscapeRight)
不要用[UIDevice currentDevice].orientation,如下,因為不準:
[UIDevice currentDevice].orientation == UIDeviceOrientationLandscapeLeft ||[UIDevice currentDevice].orientation == UIDeviceOrientationLandscapeRight