我用iphone和ipad制作应用程序,在肖像画中制作iphone应用程序(底部主页按钮),并在景观(右主按钮)中制作ipad应用程序,在ipad ios 6、7版本显示应用程序景观模式下,但ios 5不能在景观中显示。
info.plist截图
ios 7截图
ios 5截图
请帮帮我
发布于 2014-01-15 06:50:58
最后,我在所有的ipad视图控制器中删除了写贝洛尔方法。
-(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;
}
发布于 2014-01-15 05:56:31
试试这个吗,- orientation is not working in ios 5 and it is working in ios 6
如何处理iOS 5和6+之间的方向更改。
https://stackoverflow.com/questions/21129879
复制相似问题