使用UISplitViewController作为模态视图控制器

使用UISplitViewController作为模态视图控制器

本文介绍了如何使用UISplitViewController作为模态视图控制器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的iPad应用程序中显示一个UISplitViewController,将其显示为模态视图控制器。我设法显示它,但由于某种原因,模态视图左侧有一个间隙,状态栏的大小也会在方向更改时保留。

I am trying to display a UISplitViewController presenting it as a Modal View Controller in my iPad app. I manage to have it display, but for some reason there is a gap to the left of the modal view the size of a Status Bar which is also preserved when the orientation is changed.

有谁知道为什么这发生了什么?或者如果这是可能的话?也许我只是在挖自己一个大洞。

Does anybody know why this is happening? Or if this is even possible? Maybe I'm just digging myself a huge hole.

推荐答案

股票 UISplitViewController 仅用作根视图控制器。提出一个模态违反了Apple人机界面指南,很有可能被App Review团队拒绝。此外,您可能会收到错误:

The stock UISplitViewController was designed for use as the root view controller only. Presenting one modally goes against the Apple Human Interface Guidelines and has a high probability of getting rejected by the App Review Team. In addition, you may receive the error:

这篇关于如何使用UISplitViewController作为模态视图控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 03:53