UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
if(orientation == 0) //Default orientation
//默认
elseif(orientation == UIInterfaceOrientationPortrait)
//竖屏
elseif(orientation == UIInterfaceOrientationLandscapeLeft)
// 左横屏
elseif(orientation == UIInterfaceOrientationLandscapeRight)
//右横屏