UISplitViewController全屏详情视图 [英] UISplitViewController Full Screen For Detail View

查看:159
本文介绍了UISplitViewController全屏详情视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个uisplitviewcontroller,它将UIWebView作为其详细视图加载。我想允许使用隐藏RootViewController,以便他们可以全屏使用详细视图控制器。

I have a uisplitviewcontroller which loads a UIWebView as its detail view. I would like to allow the use to hide the RootViewController so that they can use the detail view controller in full screen.

行为类似于Dropbox应用程序使用的行为。我不知道如何完成这件事。我已经尝试创建一个新的视图控制器并复制webView,但每当用户缩放Web视图时都会出现问题。

The behavior is similar to that used by the Dropbox application. I'm not sure how to get this done. I've tried creating a new view controller and copy the webView, but there are issues whenever the user zooms the web view.

推荐答案

您可以将默认拆分视图仅自定义为特定级别。
以下是SO中的一些相关问题:

You can customize the default split view only to a certain level.. Here are some related questions from SO:

在拆分视图应用程序中隐藏主视图.. ???

Ipad Split视图控制器

但我想你已经读过了。

but i think you've already read them.

我建议您创建自己的自定义控制器,因为默认的拆分视图功能非常有限。
您可以查看 MGSplitViewController 。它是一个非常好的自定义实现,类似于UISplitViewController,具有更大的灵活性。

I would suggest you to create your own custom controller as the default split view has very limited functionality. You can look at MGSplitViewController. It is a really good custom implementation similar to the UISplitViewController with much more flexibility.

这篇关于UISplitViewController全屏详情视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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