獲取當(dāng)前屏幕的方向;
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
if (orientation == UIInterfaceOrientationLandscapeLeft || orientation == UIInterfaceOrientationLandscapeRight) {
DLog(@"橫屏");
}else{
DLog(@"豎屏");
}