获取当前屏幕的方向;
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
if (orientation == UIInterfaceOrientationLandscapeLeft || orientation == UIInterfaceOrientationLandscapeRight) {
DLog(@"横屏");
}else{
DLog(@"竖屏");
}