首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在ipad中,ios 5.0版本不能在横向模式下显示应用程序

在ipad中,ios 5.0版本不能在横向模式下显示应用程序
EN

Stack Overflow用户
提问于 2014-01-15 05:40:23
回答 2查看 59关注 0票数 0

我用iphone和ipad制作应用程序,在肖像画中制作iphone应用程序(底部主页按钮),并在景观(右主按钮)中制作ipad应用程序,在ipad ios 6、7版本显示应用程序景观模式下,但ios 5不能在景观中显示。

info.plist截图

ios 7截图

ios 5截图

请帮帮我

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-01-15 06:50:58

最后,我在所有的ipad视图控制器中删除了写贝洛尔方法。

代码语言:javascript
运行
复制
    -(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;

}
票数 1
EN

Stack Overflow用户

发布于 2014-01-15 05:56:31

试试这个吗,- orientation is not working in ios 5 and it is working in ios 6

如何处理iOS 5和6+之间的方向更改。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21129879

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档