Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在ipad ios 5.0版本中,可以';t在横向模式下显示应用程序_Ios_Orientation_Xcode5_Uiinterfaceorientation - Fatal编程技术网

在ipad ios 5.0版本中,可以';t在横向模式下显示应用程序

在ipad ios 5.0版本中,可以';t在横向模式下显示应用程序,ios,orientation,xcode5,uiinterfaceorientation,Ios,Orientation,Xcode5,Uiinterfaceorientation,我在iphone和ipad中制作应用程序,iphone应用程序在纵向(底部主页按钮),我在横向(右侧主页按钮)中制作ipad应用程序,在ipad ios 6,7版本显示应用程序横向模式下,但ios 5不能在横向模式下显示 info.plist的屏幕截图 ios 7屏幕截图 ios 5屏幕截图 请帮帮我试试这个 在iOS 5和iOS 6+之间,方向改变的处理方式发生了变化。最后,我在所有ipad viewcontroller中解决了write-belove方法 -(UIInterfa

我在iphone和ipad中制作应用程序,iphone应用程序在纵向(底部主页按钮),我在横向(右侧主页按钮)中制作ipad应用程序,在ipad ios 6,7版本显示应用程序横向模式下,但ios 5不能在横向模式下显示

info.plist的屏幕截图

ios 7屏幕截图

ios 5屏幕截图

请帮帮我试试这个


在iOS 5和iOS 6+之间,方向改变的处理方式发生了变化。

最后,我在所有ipad viewcontroller中解决了write-belove方法

    -(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
        return UIInterfaceOrientationLandscapeRight;
    }
    -(BOOL) shouldAutorotate {

        if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
            return YES;
        }
        return NO;
    }
    -(NSUInteger)supportedInterfaceOrientations{
        return UIInterfaceOrientationMaskAll;
    }
    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{

        if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
            if (interfaceOrientation==UIInterfaceOrientationLandscapeRight) {

                return YES;
            }
        }
        return NO;

}