强制iPad应用程序即使在纵向方向显示splitView(如设置iPad应用程序) [英] Forcing an iPad app to show splitView even in Portrait orientation(Like the Settings iPad app)

查看:93
本文介绍了强制iPad应用程序即使在纵向方向显示splitView(如设置iPad应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一个基于splitView的iPad应用程序,它在每个方向显示分割界面。我已经尝试了子类化UISplitViewController类,如 this 教程,但它不起作用。我尝试创建一个类别来设置 _hidesMasterViewInPortrait =(隐藏)? 0:1; ,正如上面博客中的一条评论中所建议的,但没有任何效果。

I am trying to develop a splitView based iPad app, that displays the split interface in every orientation. I have tried subclassing the UISplitViewController class as given in this tutorial, but it doesn't work. I tried creating a category to set _hidesMasterViewInPortrait = (hidden) ? 0 : 1;, as suggested in one of the comments in the above blog, but nothing worked.

任何人都可以帮我找到一个没有使用任何第三方框架或类的方法吗?

Can anyone help me to find a way out of this, without using any third party frameworks or classes?

推荐答案

我从未实现过强制SPlitViewController这样做但是因为您需要为这两个部分创建控制器,所以您可以重复使用这些控制器以您希望的方式显示内容。

I never achieved to force the SPlitViewController to do that but since you need to create controllers for both parts, you can just reuse those controllers to display the content the way you want it.

这篇关于强制iPad应用程序即使在纵向方向显示splitView(如设置iPad应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆