在ipad ios 5.0版本中,可以';t在横向模式下显示应用程序
我在iphone和ipad中制作应用程序,iphone应用程序在纵向(底部主页按钮),我在横向(右侧主页按钮)中制作ipad应用程序,在ipad ios 6,7版本显示应用程序横向模式下,但ios 5不能在横向模式下显示 info.plist的屏幕截图 ios 7屏幕截图 ios 5屏幕截图 请帮帮我试试这个在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
在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;
}